Struct parity_wasm::builder::FuncBodyBuilder
source · pub struct FuncBodyBuilder<F = Identity> { /* private fields */ }
Expand description
Function body (code) builder
Implementations§
source§impl<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
source§impl<F> FuncBodyBuilder<F>where
F: Invoke<FuncBody>,
impl<F> FuncBodyBuilder<F>where F: Invoke<FuncBody>,
sourcepub fn with_locals<I>(self, locals: I) -> Selfwhere
I: IntoIterator<Item = Local>,
pub fn with_locals<I>(self, locals: I) -> Selfwhere I: IntoIterator<Item = Local>,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more