pub struct HostImport {
pub module: &'static str,
pub name: &'static str,
}Expand description
One WASM host import: the import module it is resolved in, and its name.
Fields§
§module: &'static strThe wasm_import_module the host must register this function under.
name: &'static strThe import’s link name.
Trait Implementations§
Source§impl Clone for HostImport
impl Clone for HostImport
impl Copy for HostImport
Source§impl Debug for HostImport
impl Debug for HostImport
impl Eq for HostImport
Source§impl Ord for HostImport
impl Ord for HostImport
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 PartialEq for HostImport
impl PartialEq for HostImport
Source§impl PartialOrd for HostImport
impl PartialOrd for HostImport
impl StructuralPartialEq for HostImport
Auto Trait Implementations§
impl Freeze for HostImport
impl RefUnwindSafe for HostImport
impl Send for HostImport
impl Sync for HostImport
impl Unpin for HostImport
impl UnsafeUnpin for HostImport
impl UnwindSafe for HostImport
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