pub struct Zeroizing<Z>(/* private fields */)
where
Z: Zeroize + ?Sized;Expand description
Zeroizing is a wrapper for any Z: Zeroize type which implements a
Drop handler which zeroizes dropped values.
Zeroizing<T> is defined with repr(transparent), which means it is
guaranteed to have the same physical representation as the underlying type.
Implementations§
Trait Implementations§
impl<Z> Eq for Zeroizing<Z>
Source§impl<Z> PartialEq for Zeroizing<Z>
impl<Z> PartialEq for Zeroizing<Z>
impl<Z> StructuralPartialEq for Zeroizing<Z>
impl<Z> ZeroizeOnDrop for Zeroizing<Z>
Auto Trait Implementations§
impl<Z> Freeze for Zeroizing<Z>
impl<Z> RefUnwindSafe for Zeroizing<Z>where
Z: RefUnwindSafe + ?Sized,
impl<Z> Send for Zeroizing<Z>
impl<Z> Sync for Zeroizing<Z>
impl<Z> Unpin for Zeroizing<Z>
impl<Z> UnsafeUnpin for Zeroizing<Z>where
Z: UnsafeUnpin + ?Sized,
impl<Z> UnwindSafe for Zeroizing<Z>where
Z: UnwindSafe + ?Sized,
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