pub enum StoredValue {
I32(u32),
I64(u64),
F32(F32),
F64(F64),
V128([u8; 16]),
Ref(StoredRef),
}Expand description
A stored variant of Value
Variants§
Trait Implementations§
Source§impl AbstractStored for StoredValue
impl AbstractStored for StoredValue
type BareTy = Value
Source§unsafe fn from_bare(bare_value: Self::BareTy, id: StoreId) -> Self
unsafe fn from_bare(bare_value: Self::BareTy, id: StoreId) -> Self
Creates a new stored object Read more
Source§fn into_bare(self) -> Self::BareTy
fn into_bare(self) -> Self::BareTy
Converts this stored object into its bare form that does not have any
StoreId attached to it.Source§fn try_unwrap_into_bare(
self,
expected_store_id: StoreId,
) -> Result<Self::BareTy, RuntimeError>
fn try_unwrap_into_bare( self, expected_store_id: StoreId, ) -> Result<Self::BareTy, RuntimeError>
Source§impl Clone for StoredValue
impl Clone for StoredValue
Source§fn clone(&self) -> StoredValue
fn clone(&self) -> StoredValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoredValue
impl Debug for StoredValue
Source§impl From<F32> for StoredValue
impl From<F32> for StoredValue
Source§impl From<F64> for StoredValue
impl From<F64> for StoredValue
Source§impl From<RefExtern> for StoredValue
impl From<RefExtern> for StoredValue
Source§impl From<StoredRef> for StoredValue
impl From<StoredRef> for StoredValue
Source§impl From<StoredRefFunc> for StoredValue
impl From<StoredRefFunc> for StoredValue
Source§fn from(value: StoredRefFunc) -> Self
fn from(value: StoredRefFunc) -> Self
Converts to this type from the input type.
Source§impl From<f32> for StoredValue
impl From<f32> for StoredValue
Source§impl From<f64> for StoredValue
impl From<f64> for StoredValue
Source§impl From<i32> for StoredValue
impl From<i32> for StoredValue
Source§impl From<i64> for StoredValue
impl From<i64> for StoredValue
Source§impl From<u32> for StoredValue
impl From<u32> for StoredValue
Source§impl From<u64> for StoredValue
impl From<u64> for StoredValue
Source§impl PartialEq for StoredValue
impl PartialEq for StoredValue
Source§impl TryFrom<StoredValue> for [u8; 16]
impl TryFrom<StoredValue> for [u8; 16]
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
Source§impl TryFrom<StoredValue> for F32
impl TryFrom<StoredValue> for F32
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
Source§impl TryFrom<StoredValue> for F64
impl TryFrom<StoredValue> for F64
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
Source§impl TryFrom<StoredValue> for RefExtern
impl TryFrom<StoredValue> for RefExtern
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
Source§impl TryFrom<StoredValue> for StoredRef
impl TryFrom<StoredValue> for StoredRef
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
Source§impl TryFrom<StoredValue> for StoredRefFunc
impl TryFrom<StoredValue> for StoredRefFunc
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
Source§impl TryFrom<StoredValue> for f32
impl TryFrom<StoredValue> for f32
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
Source§impl TryFrom<StoredValue> for f64
impl TryFrom<StoredValue> for f64
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
Source§impl TryFrom<StoredValue> for i32
impl TryFrom<StoredValue> for i32
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
Source§impl TryFrom<StoredValue> for i64
impl TryFrom<StoredValue> for i64
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
Source§impl TryFrom<StoredValue> for u32
impl TryFrom<StoredValue> for u32
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
Source§impl TryFrom<StoredValue> for u64
impl TryFrom<StoredValue> for u64
Source§type Error = ValueTypeMismatchError
type Error = ValueTypeMismatchError
The type returned in the event of a conversion error.
impl Copy for StoredValue
impl StructuralPartialEq for StoredValue
Auto Trait Implementations§
impl Freeze for StoredValue
impl RefUnwindSafe for StoredValue
impl Send for StoredValue
impl Sync for StoredValue
impl Unpin for StoredValue
impl UnwindSafe for StoredValue
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