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
source§impl<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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more