Struct wasmer_near::LazyInit [−][src]
pub struct LazyInit<T: Sized> { /* fields omitted */ }
Expand description
Lazily init an item
Implementations
Safety
- The data must be initialized first
Sets a value and marks the data as initialized.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for LazyInit<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for LazyInit<T> where
T: UnwindSafe,
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