Trait minicbor::encode::write::Write

source ·
pub trait Write {
    type Error;

    // Required method
    fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error>;
}
Expand description

A type that accepts byte slices for writing.

Required Associated Types§

Required Methods§

source

fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error>

Write the whole byte slice.

Implementors§

source§

impl<W: Write> Write for W

§

type Error = Error