Struct parity_wasm::builder::GlobalBuilder
source · [−]pub struct GlobalBuilder<F = Identity> { /* private fields */ }
Expand description
Global builder
Implementations
sourceimpl GlobalBuilder
impl GlobalBuilder
sourceimpl<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
sourceimpl<F> GlobalBuilder<F> where
F: Invoke<GlobalEntry>,
impl<F> GlobalBuilder<F> where
F: Invoke<GlobalEntry>,
Trait Implementations
Auto Trait Implementations
impl<F> RefUnwindSafe for GlobalBuilder<F> where
F: RefUnwindSafe,
impl<F> Send for GlobalBuilder<F> where
F: Send,
impl<F> Sync for GlobalBuilder<F> where
F: Sync,
impl<F> Unpin for GlobalBuilder<F> where
F: Unpin,
impl<F> UnwindSafe for GlobalBuilder<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more