pub struct FullAutoClear<T>(/* private fields */)
where
T: Clear;Expand description
Any mutable item wrapped in this structure is automatically cleaned when initialized and dropped.
Trait Implementations§
Source§impl<T> AsMut<T> for FullAutoClear<T>where
T: Clear,
impl<T> AsMut<T> for FullAutoClear<T>where
T: Clear,
Source§impl<T> AsRef<T> for FullAutoClear<T>where
T: Clear,
impl<T> AsRef<T> for FullAutoClear<T>where
T: Clear,
Source§impl<T> Borrow<T> for FullAutoClear<T>where
T: Clear,
impl<T> Borrow<T> for FullAutoClear<T>where
T: Clear,
Source§impl<T> BorrowMut<T> for FullAutoClear<T>where
T: Clear,
impl<T> BorrowMut<T> for FullAutoClear<T>where
T: Clear,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Debug for FullAutoClear<T>
impl<T> Debug for FullAutoClear<T>
Source§impl<T> Deref for FullAutoClear<T>where
T: Clear,
impl<T> Deref for FullAutoClear<T>where
T: Clear,
Source§impl<T> DerefMut for FullAutoClear<T>where
T: Clear,
impl<T> DerefMut for FullAutoClear<T>where
T: Clear,
Source§impl<T> Drop for FullAutoClear<T>where
T: Clear,
impl<T> Drop for FullAutoClear<T>where
T: Clear,
Source§impl<T> From<T> for FullAutoClear<T>where
T: Clear,
impl<T> From<T> for FullAutoClear<T>where
T: Clear,
Source§impl<T> Ord for FullAutoClear<T>
impl<T> Ord for FullAutoClear<T>
Source§fn cmp(&self, other: &FullAutoClear<T>) -> Ordering
fn cmp(&self, other: &FullAutoClear<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T> PartialEq for FullAutoClear<T>
impl<T> PartialEq for FullAutoClear<T>
Source§impl<T> PartialOrd for FullAutoClear<T>where
T: Clear + PartialOrd,
impl<T> PartialOrd for FullAutoClear<T>where
T: Clear + PartialOrd,
impl<T> Eq for FullAutoClear<T>
impl<T> StructuralPartialEq for FullAutoClear<T>where
T: Clear,
Auto Trait Implementations§
impl<T> Freeze for FullAutoClear<T>where
T: Freeze,
impl<T> RefUnwindSafe for FullAutoClear<T>where
T: RefUnwindSafe,
impl<T> Send for FullAutoClear<T>where
T: Send,
impl<T> Sync for FullAutoClear<T>where
T: Sync,
impl<T> Unpin for FullAutoClear<T>where
T: Unpin,
impl<T> UnwindSafe for FullAutoClear<T>where
T: UnwindSafe,
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