pub enum InitExpr {
Value(Value),
Global(GlobalID),
RefNull(RefType),
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(RefType)
A null reference
RefFunc(FunctionID)
A function initializer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InitExpr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)