pub enum DropFlagState {
Present,
Absent,
}
Expand description
The value of an inserted drop flag.
Variants§
Present
The tracked value is initialized and needs to be dropped when leaving its scope.
Absent
The tracked value is uninitialized or was moved out of and does not need to be dropped when leaving its scope.
Implementations§
Trait Implementations§
source§impl Clone for DropFlagState
impl Clone for DropFlagState
source§fn clone(&self) -> DropFlagState
fn clone(&self) -> DropFlagState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DropFlagState
impl Debug for DropFlagState
source§impl PartialEq<DropFlagState> for DropFlagState
impl PartialEq<DropFlagState> for DropFlagState
source§fn eq(&self, other: &DropFlagState) -> bool
fn eq(&self, other: &DropFlagState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DropFlagState
impl Eq for DropFlagState
impl StructuralEq for DropFlagState
impl StructuralPartialEq for DropFlagState
Auto Trait Implementations§
impl RefUnwindSafe for DropFlagState
impl Send for DropFlagState
impl Sync for DropFlagState
impl Unpin for DropFlagState
impl UnwindSafe for DropFlagState
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Present
: 0 bytesAbsent
: 0 bytes