pub enum ExternVal {
Func(usize),
Table(usize),
Mem(usize),
Global(usize),
}
Variants§
Implementations§
Source§impl ExternVal
impl ExternVal
Sourcepub fn extern_type(&self, store: &Store<'_>) -> CustomResult<ExternType>
pub fn extern_type(&self, store: &Store<'_>) -> CustomResult<ExternType>
returns the external type of self
according to typing relation,
taking store
as context S.
typing fails if this external value does not exist within S.
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