Skip to main content

WriteBuffer

Trait WriteBuffer 

Source
pub trait WriteBuffer: Debug {
    // Required method
    fn buffer_write(&mut self, data: &[u8]) -> Result<(), Error>;
}
Expand description

Support for writing to a byte buffer

Required Methods§

Source

fn buffer_write(&mut self, data: &[u8]) -> Result<(), Error>

Append a slice to the buffer

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl WriteBuffer for Vec<u8>

Available on crate feature alloc only.
Source§

fn buffer_write(&mut self, data: &[u8]) -> Result<(), Error>

Implementors§

Source§

impl WriteBuffer for SecretBytes

Available on crate feature alloc only.
Source§

impl WriteBuffer for Writer<'_, [u8]>

Source§

impl<B: WriteBuffer + ?Sized> WriteBuffer for Writer<'_, B>

Source§

impl<D: Debug + Digest> WriteBuffer for ConcatKDFHash<D>

Source§

impl<D: Debug + Digest> WriteBuffer for HashBuffer<D>