Struct parity_wasm::builder::GlobalBuilder
source · pub struct GlobalBuilder<F = Identity> { /* private fields */ }
Expand description
Global builder
Implementations§
source§impl GlobalBuilder
impl GlobalBuilder
source§impl<F> GlobalBuilder<F>
impl<F> GlobalBuilder<F>
sourcepub fn with_callback(callback: F) -> Self
pub fn with_callback(callback: F) -> Self
New global builder with callback (in chained context)
sourcepub fn init_expr(self, instruction: Instruction) -> Self
pub fn init_expr(self, instruction: Instruction) -> Self
Set initialization expression instruction for this global (end
instruction will be added automatically)
sourcepub fn value_type(self) -> ValueTypeBuilder<Self>
pub fn value_type(self) -> ValueTypeBuilder<Self>
Start value type builder