pub struct FuncId(pub u32);Expand description
An index into the module’s function table.
§Examples
use bytecode_lang::FuncId;
assert_eq!(FuncId(2).to_string(), "f2");Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for FuncId
impl Eq for FuncId
Source§impl Ord for FuncId
impl Ord for FuncId
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 FuncId
impl PartialOrd for FuncId
impl StructuralPartialEq for FuncId
Auto Trait Implementations§
impl Freeze for FuncId
impl RefUnwindSafe for FuncId
impl Send for FuncId
impl Sync for FuncId
impl Unpin for FuncId
impl UnsafeUnpin for FuncId
impl UnwindSafe for FuncId
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