minicbor::encode::write

Trait Write

Source
pub trait Write {
    type Error;

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

A type that writes byte slices.

Required Associated Types§

Required Methods§

Source

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

Write the whole byte slice.

Implementations on Foreign Types§

Source§

impl Write for &mut [u8]

Source§

type Error = EndOfSlice

Source§

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

Source§

impl<W: Write + ?Sized> Write for &mut W

Source§

type Error = <W as Write>::Error

Source§

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

Implementors§