Enum wasmer_vm::WeakOrStrongInstanceRef [−][src]
pub enum WeakOrStrongInstanceRef { Weak(WeakInstanceRef), Strong(InstanceRef), }
Expand description
An InstanceRef
that may or may not be keeping the Instance
alive.
This type is useful for types that conditionally must keep / not keep the
underlying Instance
alive. For example, to prevent cycles in WasmerEnv
s.
Variants
A weak instance ref.
A strong instance ref.
Implementations
Trait Implementations
Returns the size of the referenced value in bytes. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl !RefUnwindSafe for WeakOrStrongInstanceRef
impl Send for WeakOrStrongInstanceRef
impl Sync for WeakOrStrongInstanceRef
impl Unpin for WeakOrStrongInstanceRef
impl !UnwindSafe for WeakOrStrongInstanceRef
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more