pub enum FuncKind<'a> {
Import(InlineImport<'a>),
Inline {
locals: Box<[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
Almost all functions, those defined inline in a wasm module.
Fields
§
expression: Expression<'a>The instructions of the function.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FuncKind<'a>
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§
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