Struct web_assembler::builder::FunctionBuilder
source · [−]pub struct FunctionBuilder { /* private fields */ }
Implementations
sourceimpl FunctionBuilder
impl FunctionBuilder
pub fn new(ty: FuncType) -> Self
pub fn build(self) -> (FuncType, FunctionBody)
pub fn new_local(&mut self, ty: ValueType) -> LocalIndex
pub fn new_locals(&mut self, tys: Vec<ValueType>) -> Vec<LocalIndex>
pub fn code<F: FnOnce(CodeBuilder, &[LocalIndex]) -> CodeBuilder>(
self,
f: F
) -> Self
Auto Trait Implementations
impl RefUnwindSafe for FunctionBuilder
impl Send for FunctionBuilder
impl Sync for FunctionBuilder
impl Unpin for FunctionBuilder
impl UnwindSafe for FunctionBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more