Trait zeroize::ZeroizeOnDrop
source · pub trait ZeroizeOnDrop { }
Expand description
Marker trait signifying that this type will Zeroize::zeroize
itself on Drop
.
Implementations on Foreign Types§
impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]where
Z: ZeroizeOnDrop,
Impl ZeroizeOnDrop
on arrays of types that impl ZeroizeOnDrop
.
impl<Z> ZeroizeOnDrop for Option<Z>where
Z: ZeroizeOnDrop,
impl<Z> ZeroizeOnDrop for PhantomData<Z>
[PhantomData
is always zero sized so provide a ZeroizeOnDrop implementation.
impl ZeroizeOnDrop for PhantomPinned
PhantomPinned
is zero sized so provide a ZeroizeOnDrop implementation.
impl ZeroizeOnDrop for ()
()
is zero sized so provide a ZeroizeOnDrop implementation.
impl<A: ZeroizeOnDrop> ZeroizeOnDrop for (A,)
Generic implementation of ZeroizeOnDrop for tuples up to 10 parameters.