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 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§