pub struct ConstId(pub u32);Expand description
An index into the module’s constant pool.
§Examples
use bytecode_lang::ConstId;
assert_eq!(ConstId(0).to_string(), "k0");Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for ConstId
impl Eq for ConstId
Source§impl Ord for ConstId
impl Ord for ConstId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ConstId
impl PartialOrd for ConstId
impl StructuralPartialEq for ConstId
Auto Trait Implementations§
impl Freeze for ConstId
impl RefUnwindSafe for ConstId
impl Send for ConstId
impl Sync for ConstId
impl Unpin for ConstId
impl UnsafeUnpin for ConstId
impl UnwindSafe for ConstId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more