pub enum FuncKind<'a> {
Import(InlineImport<'a>),
Inline {
locals: Vec<Local<'a>>,
expression: Expression<'a>,
},
}
Expand description
Possible ways to define a function in the text format.
Variants
Import(InlineImport<'a>)
A function which is actually defined as an import, such as:
(func (type 3) (import "foo" "bar"))
Inline
Fields
expression: Expression<'a>
The instructions of the function.
Almost all functions, those defined inline in a wasm module.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for FuncKind<'a>
impl<'a> Send for FuncKind<'a>
impl<'a> Sync for FuncKind<'a>
impl<'a> Unpin for FuncKind<'a>
impl<'a> UnwindSafe for FuncKind<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more