Enum wasmtime_environ::GlobalInit
source · [−]pub enum GlobalInit {
I32Const(i32),
I64Const(i64),
F32Const(u32),
F64Const(u64),
V128Const(u128),
GetGlobal(GlobalIndex),
RefNullConst,
RefFunc(FuncIndex),
Import,
}
Expand description
Globals are initialized via the const
operators or by referring to another import.
Variants
I32Const(i32)
An i32.const
.
I64Const(i64)
An i64.const
.
F32Const(u32)
An f32.const
.
F64Const(u64)
An f64.const
.
V128Const(u128)
A vconst
.
GetGlobal(GlobalIndex)
A global.get
of another global.
RefNullConst
A ref.null
.
RefFunc(FuncIndex)
A ref.func <index>
.
Import
< The global is imported from, and thus initialized by, a different module.
Trait Implementations
sourceimpl Clone for GlobalInit
impl Clone for GlobalInit
sourcefn clone(&self) -> GlobalInit
fn clone(&self) -> GlobalInit
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GlobalInit
impl Debug for GlobalInit
sourceimpl<'de> Deserialize<'de> for GlobalInit
impl<'de> Deserialize<'de> for GlobalInit
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<GlobalInit, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<GlobalInit, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for GlobalInit
impl Hash for GlobalInit
sourceimpl PartialEq<GlobalInit> for GlobalInit
impl PartialEq<GlobalInit> for GlobalInit
sourcefn eq(&self, other: &GlobalInit) -> bool
fn eq(&self, other: &GlobalInit) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GlobalInit) -> bool
fn ne(&self, other: &GlobalInit) -> bool
This method tests for !=
.
sourceimpl Serialize for GlobalInit
impl Serialize for GlobalInit
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for GlobalInit
impl Eq for GlobalInit
impl StructuralEq for GlobalInit
impl StructuralPartialEq for GlobalInit
Auto Trait Implementations
impl RefUnwindSafe for GlobalInit
impl Send for GlobalInit
impl Sync for GlobalInit
impl Unpin for GlobalInit
impl UnwindSafe for GlobalInit
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more