pub enum ExternVal {
Func(FuncAddr),
Table(TableAddr),
Memory(MemAddr),
Global(GlobalAddr),
}Expand description
A WebAssembly External Value.
See https://webassembly.github.io/spec/core/exec/runtime.html#external-values
Variants§
Implementations§
Source§impl ExternVal
impl ExternVal
pub const fn kind(&self) -> ExternalKind
pub const fn new(kind: ExternalKind, addr: Addr) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExternVal
impl RefUnwindSafe for ExternVal
impl Send for ExternVal
impl Sync for ExternVal
impl Unpin for ExternVal
impl UnsafeUnpin for ExternVal
impl UnwindSafe for ExternVal
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