pub struct Zeroizing<Z: Zeroize>(/* private fields */);
Expand description
Zeroizing
is a a wrapper for any Z: Zeroize
type which implements a
Drop
handler which zeroizes dropped values.
Implementations§
Trait Implementations§
impl<Z: Eq + Zeroize> Eq for Zeroizing<Z>
impl<Z: Zeroize> StructuralPartialEq for Zeroizing<Z>
Auto Trait Implementations§
impl<Z> Freeze for Zeroizing<Z>where
Z: Freeze,
impl<Z> RefUnwindSafe for Zeroizing<Z>where
Z: RefUnwindSafe,
impl<Z> Send for Zeroizing<Z>where
Z: Send,
impl<Z> Sync for Zeroizing<Z>where
Z: Sync,
impl<Z> Unpin for Zeroizing<Z>where
Z: Unpin,
impl<Z> UnwindSafe for Zeroizing<Z>where
Z: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)