pub enum ExternVal {
Func(Func),
Table(Table),
Memory(Mem),
Global(Global),
}Expand description
A Wasm entity that can be imported or exported.
Variants§
Implementations§
Source§impl ExternVal
impl ExternVal
Sourcepub fn type_(self, store: &Store) -> ExternType
pub fn type_(self, store: &Store) -> ExternType
Returns the ExternType of this ExternVal.
Trait Implementations§
impl Copy for ExternVal
impl Eq for ExternVal
impl StructuralPartialEq for ExternVal
Auto Trait Implementations§
impl Freeze for ExternVal
impl !RefUnwindSafe for ExternVal
impl !Send for ExternVal
impl !Sync for ExternVal
impl Unpin 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