Trait cbor_smol::ser::Writer[][src]

pub trait Writer {
    type Error: Into<Error>;
    fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error>;
}

Associated Types

type Error: Into<Error>[src]

The type of error returned when a write operation fails.

Loading content...

Required methods

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

Attempts to write an entire buffer into this write.

Loading content...

Implementors

impl<'a> Writer for SliceWriter<'a>[src]

type Error = Error

impl<'a, N> Writer for &'a mut Bytes<N> where
    N: ArrayLength<u8>, 
[src]

type Error = Error

Loading content...