pub struct DropState { /* private fields */ }
Expand description
The state of a particular DropToken
.
Implementations§
Source§impl DropState
impl DropState
Sourcepub fn is_dropped(&self) -> bool
pub fn is_dropped(&self) -> bool
Returns true if the token associated with this state has been dropped.
Sourcepub fn is_not_dropped(&self) -> bool
pub fn is_not_dropped(&self) -> bool
The inverse of is_dropped()
.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DropState
impl RefUnwindSafe for DropState
impl Send for DropState
impl Sync for DropState
impl Unpin for DropState
impl UnwindSafe for DropState
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