Skip to main content

SecureClear

Trait SecureClear 

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

Trait for types that can be securely cleared

Required Methods§

Source

fn secure_clear(&mut self)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SecureClear for String

Source§

fn secure_clear(&mut self)

Source§

impl SecureClear for Vec<u8>

Source§

fn secure_clear(&mut self)

Implementors§