pub enum InitExpr {
Value(Value),
Global(GlobalId),
RefNull(ValType),
RefFunc(FunctionId),
}
Expand description
A constant which is produced in WebAssembly, typically used in global initializers or element/data offsets.
Variants§
Value(Value)
An immediate constant value
Global(GlobalId)
A constant value referenced by the global specified
RefNull(ValType)
A null reference
RefFunc(FunctionId)
A function initializer
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InitExpr
impl Send for InitExpr
impl Sync for InitExpr
impl Unpin for InitExpr
impl UnwindSafe for InitExpr
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