#[non_exhaustive]pub enum AllocationPosture {
Present,
Absent,
UnknownNoAddressRetained,
}Expand description
Address-free allocation-presence posture.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Present
The exact protected owner is live and addressable only through its type.
Absent
Teardown conclusively removed the allocation capability.
UnknownNoAddressRetained
Disposal became indeterminate and no address is retained.
Implementations§
Trait Implementations§
Source§impl Clone for AllocationPosture
impl Clone for AllocationPosture
Source§fn clone(&self) -> AllocationPosture
fn clone(&self) -> AllocationPosture
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AllocationPosture
Source§impl Debug for AllocationPosture
impl Debug for AllocationPosture
impl Eq for AllocationPosture
Source§impl Hash for AllocationPosture
impl Hash for AllocationPosture
Source§impl PartialEq for AllocationPosture
impl PartialEq for AllocationPosture
impl StructuralPartialEq for AllocationPosture
Auto Trait Implementations§
impl Freeze for AllocationPosture
impl RefUnwindSafe for AllocationPosture
impl Send for AllocationPosture
impl Sync for AllocationPosture
impl Unpin for AllocationPosture
impl UnsafeUnpin for AllocationPosture
impl UnwindSafe for AllocationPosture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more