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(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