pub enum StoredRef {
Null(RefType),
Func(Stored<FuncAddr>),
Extern(ExternAddr),
}Expand description
A stored variant of Ref
Variants§
Null(RefType)
Func(Stored<FuncAddr>)
Extern(ExternAddr)
We do not wrap ExternAddrs in a Stored object because they are
not stored in the Store.
Trait Implementations§
Source§impl AbstractStored for StoredRef
impl AbstractStored for StoredRef
type BareTy = Ref
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 From<StoredRef> for StoredValue
impl From<StoredRef> for StoredValue
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.
impl Copy for StoredRef
impl StructuralPartialEq for StoredRef
Auto Trait Implementations§
impl Freeze for StoredRef
impl RefUnwindSafe for StoredRef
impl Send for StoredRef
impl Sync for StoredRef
impl Unpin for StoredRef
impl UnwindSafe for StoredRef
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