pub enum ExternVal {
Func(usize),
Table(usize),
Mem(usize),
Global(usize),
}
Variants§
Implementations§
Source§impl ExternVal
impl ExternVal
Sourcepub fn extern_type<T>(&self, store: &Store<'_, T>) -> ExternType
pub fn extern_type<T>(&self, store: &Store<'_, T>) -> ExternType
returns the external type of self
according to typing relation,
taking store
as context S.
Note: This method may panic if self does not come from the given Store
.
https://webassembly.github.io/spec/core/valid/modules.html#imports
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