pub struct Memzero<T: AsMut<[u8]>> { /* private fields */ }
Expand description
Wrapper to zero out memory when dropped.
Trait Implementations§
Source§impl<T: Ord + AsMut<[u8]>> Ord for Memzero<T>
impl<T: Ord + AsMut<[u8]>> Ord for Memzero<T>
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: PartialOrd + AsMut<[u8]>> PartialOrd for Memzero<T>
impl<T: PartialOrd + AsMut<[u8]>> PartialOrd for Memzero<T>
impl<T: Eq + AsMut<[u8]>> Eq for Memzero<T>
impl<T: AsMut<[u8]>> StructuralPartialEq for Memzero<T>
Auto Trait Implementations§
impl<T> Freeze for Memzero<T>where
T: Freeze,
impl<T> RefUnwindSafe for Memzero<T>where
T: RefUnwindSafe,
impl<T> Send for Memzero<T>where
T: Send,
impl<T> Sync for Memzero<T>where
T: Sync,
impl<T> Unpin for Memzero<T>where
T: Unpin,
impl<T> UnwindSafe for Memzero<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