Trait clear_on_drop::clear::Clear
[−]
[src]
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.
Implementors
impl<T: ?Sized> Clear for T where T: InitializableFromZeroed