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 WasmerEnvs.
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 WeakOrStrongInstanceRefimpl Send for WeakOrStrongInstanceRefimpl Sync for WeakOrStrongInstanceRefimpl Unpin for WeakOrStrongInstanceRefimpl !UnwindSafe for WeakOrStrongInstanceRefBlanket 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>::MetadataConverts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more