Trait hard::BufferMut [−][src]
pub trait BufferMut: Buffer where
Self: Sized, {
fn zero(&mut self);
fn try_clone(&self) -> Result<Self, HardError>;
}
Expand description
Trait implemented by any buffer type with mutable contents.
Required methods
Overwrite the contents of the buffer with zeros, in such a way that will not be optimised away by the compiler.
Buffers are automatically zeroed on drop, you should not need to call this method yourself unless you want to set a buffer to zero for initialisation purposes.