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