pub trait Zeroize {
fn zeroize(&mut self);
}
Expand description
Trait for securely erasing types from memory
Required Methods
Implementations on Foreign Types
sourceimpl Zeroize for Vec<u8>
impl Zeroize for Vec<u8>
Zeroize Vec<u8>
s by zeroizing their memory and then truncating them,
for consistency with the String
behavior below, and also as an indication
the underlying memory has been wiped.
sourceimpl Zeroize for String
impl Zeroize for String
Zeroize String
s by zeroizing their backing memory then truncating them,
to zero length (ensuring valid UTF-8, since they’re empty)