destack:memory import destack:memory Namespaces - arc — arc namespace. - arena — arena namespace. - binding — binding namespace. - cell — cell namespace. - cow — cow namespace. - raw — raw namespace. - rc — rc namespace. Structs - AllocationCapacityOverflow — Allocation failed because the requested capacity cannot be represented. - AllocationOutOfMemory — Allocation failed because the runtime could not reserve enough memory. - AllocationUnsupported — Allocation failed because the runtime does not support the requested operation. - Cell — Interior mutable storage for copyable values. - CowBorrowed — Borrowed copy-on-write value. - CowOwned — Owned copy-on-write value. Newtypes - AccessOf — Extract the access mode of T. - AccessOr — Extract the access mode of T, or fall back to D. - AllocationError — Allocation failure returned by typed fallible allocation APIs. - BaseOf — Extract the unqualified base type of T. - Borrowed — Borrowed access form for exactly T. - Box — A uniquely owned heap allocation for an owned T. - Cow — Copy-on-write value. - Dynamic — Erased runtime value for interface constraint T. - IsBorrowed — Return whether T is borrowed. - IsManaged — Return whether T is managed. - IsOwned — Return whether T is owned. - IsRaw — Return whether T is raw. - IsShared — Return whether T is explicitly placed in shared space. - IsSharedIn — Return whether T resolves to shared space in concrete space S. - Lifetime — Lifetime marker for borrowed validity. - LifetimeOf — Extract the borrow lifetime of T. - LifetimeOr — Extract the borrow lifetime of T, or fall back to D. - Managed — Default managed form for exactly T. - ManuallyDrop — Owned storage whose Drop does not run automatically. - MaybeUninit — Storage for T whose lifetime may not have started. - Owned — Unique ownership form for exactly T. - OwnershipOf — Extract the outer ownership form of T. - OwnershipOr — Extract the ownership of T, or fall back to D. - PayloadOf — Extract the payload under the outermost memory form. - Phantom — Zero-sized marker for ownership, variance, and drop behavior. - Pin — Address-stable storage wrapper. - Placed — Placement form for exactly T. - PlaceIn — Resolve relative placement in concrete space S. - PlaceOf — Extract the placement of T. - PlaceOr — Extract the placement of T, or fall back to D. - Raw — Unsafe raw pointer form for exactly T. - SpaceOf — Extract the explicit concrete space of T. - SpaceOr — Extract the explicit concrete space of T, or fall back to D. - Unique — Unique traced heap handle containing exactly T. - UnsafeCell — Unsafe interior mutable storage. - WithAccess — Reborrow Q with access mode A. - WithBase — Replace the unqualified base type of Q with T. - WithLifetime — Reborrow Q with lifetime L. - WithOwnership — Add ownership form O around Q. - WithPlace — Replace placement of Q with place P. - WithSpace — Resolve relative placement of Q in concrete space S. Newtype interfaces - AsyncDispose — Deterministic asynchronous cleanup capability, called at the end of an await using scope. - Clone — Mark a type as explicitly cloneable. - Concrete — Mark a type as having a complete storage representation. - Copy — Mark a type as implicitly duplicable without ownership transfer. - Default — Mark a type as having a conventional default value. - Dispose — Deterministic synchronous cleanup capability, called at the end of a using scope. - Drop — Ownership finalization capability. - DynamicSafe — Mark a type as safe for runtime erasure. - OverwriteStable — Mark a type as safe to overwrite through non-exclusive mutable access. - SharedSafe — Mark a type as safe to store in shared space. - Unpin — Mark a type as safe to move out of pinned storage. - Zeroable — Mark a type as valid when all bytes are zero. Interfaces - MemoryBinding — Memory binding family. Type aliases - Access — Access mode for qualified storage. - BorrowedFields — Rebase each field of T into borrowed form. - ExclusiveBorrowed — Exclusive borrowed access to T within lifetime L. - ExclusiveBorrowedFields — Rebase each field of T into exclusive borrowed form. - Local — Place T in local space. - LocalFields — Rebase each field of T into local space. - ManagedFields — Rebase each field of T into managed form. - MaybeOwned — Readonly borrowed or owned value. - OwnedFields — Rebase each field of T into owned form. - Ownership — Ownership kind for qualified storage. - Place — Placement tag kind for qualified storage. - RawFields — Rebase each field of T into raw pointer form. - ReadonlyBorrowed — Readonly borrowed access to T within lifetime L. - ReadonlyBorrowedFields — Rebase each field of T into readonly borrowed form. - Relative — Restore relative placement of T. - RelativeFields — Rebase each field of T into relative placement. - Shared — Place T in shared space. - SharedFields — Rebase each field of T into shared space. - Space — Concrete memory space tag kind. - StaticLifetime — Builtin lifetime root for static storage. Functions - assumeInit — Move one initialized storage out as T. - assumeInitDrop — Drop one initialized storage in place. - assumeInitExclusiveReference — Borrow one initialized storage with exclusive access. - assumeInitRead — Copy one initialized storage out without ending it. - assumeInitReadonlyReference — Borrow one initialized storage with readonly access. - assumeInitReference — Borrow one initialized storage. - drop — End ownership of value at this point. - forget — End ownership of value without running its destructor. - initAsExclusivePointer — Return an exclusive raw pointer to one storage. - initAsPointer — Return a raw pointer to one storage. - initNew — Create initialized storage for value. - initUninit — Create uninitialized storage for T. - initWrite — Initialize one storage with value. - initZeroed — Create zeroed storage for T. - replace — Replace destination and return its previous value. - swap — Exchange the values at left and right. - take — Replace destination with its default value and return its previous value. Constants - memory — Current memory binding family.