Struct wasmer::FunctionEnvMut
source · pub struct FunctionEnvMut<'a, T: 'a> { /* private fields */ }
Expand description
A temporary handle to a FunctionEnv
.
Implementations§
source§impl<T: Send + 'static> FunctionEnvMut<'_, T>
impl<T: Send + 'static> FunctionEnvMut<'_, T>
sourcepub fn data_mut(&mut self) -> &mut T
pub fn data_mut(&mut self) -> &mut T
Returns a mutable- reference to the host state in this function environement.
sourcepub fn as_ref(&self) -> FunctionEnv<T>
pub fn as_ref(&self) -> FunctionEnv<T>
Borrows a new immmutable reference
sourcepub fn as_mut(&mut self) -> FunctionEnvMut<'_, T>
pub fn as_mut(&mut self) -> FunctionEnvMut<'_, T>
Borrows a new mutable reference
Trait Implementations§
source§impl<T> AsStoreMut for FunctionEnvMut<'_, T>
impl<T> AsStoreMut for FunctionEnvMut<'_, T>
source§fn as_store_mut(&mut self) -> StoreMut<'_>
fn as_store_mut(&mut self) -> StoreMut<'_>
Returns a
StoreMut
pointing to the underlying context.source§fn objects_mut(&mut self) -> &mut StoreObjects
fn objects_mut(&mut self) -> &mut StoreObjects
Returns the ObjectMutable
source§impl<T> AsStoreRef for FunctionEnvMut<'_, T>
impl<T> AsStoreRef for FunctionEnvMut<'_, T>
source§fn as_store_ref(&self) -> StoreRef<'_>
fn as_store_ref(&self) -> StoreRef<'_>
Returns a
StoreRef
pointing to the underlying context.Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for FunctionEnvMut<'a, T>
impl<'a, T> !Send for FunctionEnvMut<'a, T>
impl<'a, T> !Sync for FunctionEnvMut<'a, T>
impl<'a, T> Unpin for FunctionEnvMut<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for FunctionEnvMut<'a, T>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer