#[repr(transparent)]pub struct ConstantKey(pub u8);
Expand description
A key into a function’s constant table
Used for integer literals outsize the range of -127..=128
and other literal types.
A compiled function, Procedure
, has a field holding a table of ConstantValue
s.
A ConstantKey
is an index into this table.
Tuple Fields
0: u8
Trait Implementations
sourceimpl AsSource for ConstantKey
impl AsSource for ConstantKey
fn as_first(self) -> Instruction
fn as_second(self) -> Instruction
sourceimpl Clone for ConstantKey
impl Clone for ConstantKey
sourcefn clone(&self) -> ConstantKey
fn clone(&self) -> ConstantKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConstantKey
impl Debug for ConstantKey
sourceimpl Display for ConstantKey
impl Display for ConstantKey
sourceimpl<R: Register> From<ConstantKey> for WildSource<R>
impl<R: Register> From<ConstantKey> for WildSource<R>
sourcefn from(constant: ConstantKey) -> Self
fn from(constant: ConstantKey) -> Self
Converts to this type from the input type.
sourceimpl FromSource for ConstantKey
impl FromSource for ConstantKey
fn from_first(instruction: Instruction) -> Self
fn from_second(instruction: Instruction) -> Self
impl Copy for ConstantKey
Auto Trait Implementations
impl RefUnwindSafe for ConstantKey
impl Send for ConstantKey
impl Sync for ConstantKey
impl Unpin for ConstantKey
impl UnwindSafe for ConstantKey
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