Struct web_assembler::builder::FunctionBuilder [−][src]
pub struct FunctionBuilder { /* fields omitted */ }
Methods
impl FunctionBuilder
[src]
impl FunctionBuilder
pub fn new(ty: FuncType) -> Self
[src]
pub fn new(ty: FuncType) -> Self
pub fn build(self) -> (FuncType, FunctionBody)
[src]
pub fn build(self) -> (FuncType, FunctionBody)
pub fn new_local(&mut self, ty: ValueType) -> LocalIndex
[src]
pub fn new_local(&mut self, ty: ValueType) -> LocalIndex
pub fn new_locals(&mut self, tys: Vec<ValueType>) -> Vec<LocalIndex>
[src]
pub fn new_locals(&mut self, tys: Vec<ValueType>) -> Vec<LocalIndex>
pub fn code<F: FnOnce(CodeBuilder, &[LocalIndex]) -> CodeBuilder>(
self,
f: F
) -> Self
[src]
pub fn code<F: FnOnce(CodeBuilder, &[LocalIndex]) -> CodeBuilder>(
self,
f: F
) -> Self
Auto Trait Implementations
impl Send for FunctionBuilder
impl Send for FunctionBuilder
impl Sync for FunctionBuilder
impl Sync for FunctionBuilder