[][src]Trait clear_on_drop::clear::Clear

pub trait Clear {
    fn clear(&mut self);
}

An operation to completely overwrite a value, without leaking data.

Do not implement this trait; implement InitializableFromZeroed instead. This trait's blanket implementation uses several tricks to make sure no data is leaked.

Required methods

fn clear(&mut self)

Completely overwrites this value.

Loading content...

Implementors

impl<T: ?Sized> Clear for T where
    T: InitializableFromZeroed
[src]

Loading content...