pub struct Export {
pub name: StrId,
pub item: ExportItem,
}Expand description
A named item the module exports: the shared module interface the loader links native and bytecode units through.
§Examples
use bytecode_lang::{Export, ExportItem, FuncId, StrId};
let main = Export { name: StrId(0), item: ExportItem::Func(FuncId(0)) };
assert_eq!(main.item, ExportItem::Func(FuncId(0)));Fields§
§name: StrIdThe exported name.
item: ExportItemThe exported item.
Trait Implementations§
impl Copy for Export
impl Eq for Export
Source§impl Ord for Export
impl Ord for Export
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 Export
impl PartialOrd for Export
impl StructuralPartialEq for Export
Auto Trait Implementations§
impl Freeze for Export
impl RefUnwindSafe for Export
impl Send for Export
impl Sync for Export
impl Unpin for Export
impl UnsafeUnpin for Export
impl UnwindSafe for Export
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