Struct parity_wasm::builder::GlobalBuilder
[−]
[src]
pub struct GlobalBuilder<F = Identity> { /* fields omitted */ }
Global builder
Methods
impl GlobalBuilder[src]
impl<F> GlobalBuilder<F>[src]
pub fn with_callback(callback: F) -> Self[src]
New global builder with callback (in chained context)
pub fn with_type(self, value_type: ValueType) -> Self[src]
Set/override resulting global type
pub fn mutable(self) -> Self[src]
Set mutabilty to true
pub fn init_expr(self, opcode: Opcode) -> Self[src]
Set initialization expression opcode for this global (end opcode will be added automatically)
pub fn value_type(self) -> ValueTypeBuilder<Self>[src]
Start value type builder
impl<F> GlobalBuilder<F> where
F: Invoke<GlobalEntry>, [src]
F: Invoke<GlobalEntry>,
Trait Implementations
Auto Trait Implementations
impl<F> Send for GlobalBuilder<F> where
F: Send,
F: Send,
impl<F> Sync for GlobalBuilder<F> where
F: Sync,
F: Sync,