pub struct Destructor { /* private fields */ }Expand description
A destructor for a State.
Dropping this object might destroy the state if the destructor is enabled.
This object can be constructed with State::create_destructor.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Destructor
impl !RefUnwindSafe for Destructor
impl !Send for Destructor
impl !Sync for Destructor
impl Unpin for Destructor
impl !UnwindSafe for Destructor
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