Zeroize

Trait Zeroize 

Source
pub trait Zeroize {
    // Required method
    fn zeroize(&mut self);
}
Expand description

A minimal in-crate implementation of a subset of zeroize::Zeroize.

This provides compile-fenced memory zeroing for Strings and Vecs without needing to depend on the zeroize crate.

If the optional zeroize feature is enabled, then the trait is replaced with a re-export of zeroize::Zeroize itself.

Required Methods§

Source

fn zeroize(&mut self)

Implementations on Foreign Types§

Source§

impl Zeroize for String

Source§

fn zeroize(&mut self)

Source§

impl Zeroize for Vec<u8>

Source§

fn zeroize(&mut self)

Source§

impl Zeroize for [u8]

Source§

fn zeroize(&mut self)

Implementors§