[][src]Struct parity_wasm::builder::GlobalBuilder

pub struct GlobalBuilder<F = Identity> { /* fields omitted */ }

Global builder

Methods

impl GlobalBuilder[src]

pub fn new() -> Self[src]

New global builder

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, instruction: Instruction) -> Self[src]

Set initialization expression instruction for this global (end instruction 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]

pub fn build(self) -> F::Result[src]

Finalize current builder spawning resulting struct

Auto Trait Implementations

impl<F> Send for GlobalBuilder<F> where
    F: Send

impl<F> Sync for GlobalBuilder<F> where
    F: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.