Trait dusk_bytes::Write[][src]

pub trait Write {
    fn write(&mut self, buf: &[u8]) -> Result<usize, Error>;
}
Expand description

Implementors of the Write trait are sometimes called ‘writers’.

Writers are defined by one required method, [write()].

Required methods

Write a buffer into this writer, returning how many bytes were written.

This function will attempt to write the entire contents of buf, but the entire write may not succeed, or the write may also generate an error.

Implementors