Enum externref::FunctionKind
source · pub enum FunctionKind<'a> {
Export,
Import(&'a str),
}
Expand description
Kind of a function with Resource
args or return type.
Variants§
Export
Function exported from a WASM module.
Import(&'a str)
Function imported to a WASM module from the module with the enclosed name.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FunctionKind<'a>
impl<'a> RefUnwindSafe for FunctionKind<'a>
impl<'a> Send for FunctionKind<'a>
impl<'a> Sync for FunctionKind<'a>
impl<'a> Unpin for FunctionKind<'a>
impl<'a> UnwindSafe for FunctionKind<'a>
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