pub enum Ref {
Module(u16),
Host {
module: HostModuleRef,
index: u16,
},
Extern {
module: ModuleRef,
index: u16,
},
}Expand description
A reference to a symbol in the Wasm store relative to an implicit ‘self’ module
Variants§
Module(u16)
A symbol in the current Wasm module
Host
A symbol in an external host module
Extern
A symbol in another Wasm module
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ref
impl RefUnwindSafe for Ref
impl Send for Ref
impl Sync for Ref
impl Unpin for Ref
impl UnsafeUnpin for Ref
impl UnwindSafe for Ref
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