#[repr(transparent)]pub struct Immediate(pub i8);
Expand description
Integer literal small enough to fit into a single signed byte
Values must be in the range -128..=127
to be an immediate. Immediates are
embedded directly into an operand byte of an Instruction
.
Integers outside this range and other literal types like double-precision floats
and strings must use ConstantKey
.
Tuple Fields
0: i8
Trait Implementations
sourceimpl AsSource for Immediate
impl AsSource for Immediate
fn as_first(self) -> Instruction
fn as_second(self) -> Instruction
sourceimpl<R: Register> From<Immediate> for WildSource<R>
impl<R: Register> From<Immediate> for WildSource<R>
sourceimpl FromSource for Immediate
impl FromSource for Immediate
fn from_first(instruction: Instruction) -> Self
fn from_second(instruction: Instruction) -> Self
impl Copy for Immediate
Auto Trait Implementations
impl RefUnwindSafe for Immediate
impl Send for Immediate
impl Sync for Immediate
impl Unpin for Immediate
impl UnwindSafe for Immediate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more