cbor_smol::ser

Trait Writer

source
pub trait Writer {
    type Error: Into<Error>;

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

Required Associated Types§

source

type Error: Into<Error>

The type of error returned when a write operation fails.

Required Methods§

source

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

Attempts to write an entire buffer into this write.

Implementors§

source§

impl<'a> Writer for SliceWriter<'a>

source§

impl<'a, const N: usize> Writer for &'a mut Bytes<N>