Enum wast::FuncKind [−][src]
pub enum FuncKind<'a> {
Import(InlineImport<'a>),
Inline {
locals: Vec<Local<'a>>,
expression: Expression<'a>,
},
}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"))
Almost all functions, those defined inline in a wasm module.
Show fields
Fields of Inline
locals: Vec<Local<'a>>The list of locals, if any, for this function.
expression: Expression<'a>The instructions of the function.