Struct parity_wasm::builder::FuncBodyBuilder
source · pub struct FuncBodyBuilder<F = Identity> { /* private fields */ }
Expand description
Function body (code) builder
Implementations
sourceimpl<F> FuncBodyBuilder<F>
impl<F> FuncBodyBuilder<F>
sourcepub fn with_callback(callback: F) -> Self
pub fn with_callback(callback: F) -> Self
New body (code) builder given the chain callback
sourceimpl<F> FuncBodyBuilder<F>where
F: Invoke<FuncBody>,
impl<F> FuncBodyBuilder<F>where
F: Invoke<FuncBody>,
sourcepub fn with_locals(self, locals: Vec<Local>) -> Self
pub fn with_locals(self, locals: Vec<Local>) -> Self
Extend function local list with new entries
sourcepub fn with_instructions(self, instructions: Instructions) -> Self
pub fn with_instructions(self, instructions: Instructions) -> Self
Set code of the function
Auto Trait Implementations
impl<F> RefUnwindSafe for FuncBodyBuilder<F>where
F: RefUnwindSafe,
impl<F> Send for FuncBodyBuilder<F>where
F: Send,
impl<F> Sync for FuncBodyBuilder<F>where
F: Sync,
impl<F> Unpin for FuncBodyBuilder<F>where
F: Unpin,
impl<F> UnwindSafe for FuncBodyBuilder<F>where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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