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