Trait zeroize::Zeroize[][src]

pub trait Zeroize {
    fn zeroize(&mut self);
}
Expand description

Trait for securely erasing types from memory

Required methods

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.

Implementations on Foreign Types

“Best effort” zeroization for Vec.

Ensures the entire capacity of the Vec is zeroed. Cannot ensure that previous reallocations did not leave values on the heap.

Unlike Vec, Box<[Z]> cannot reallocate, so we can be sure that we are not leaving values on the heap.

Implementors