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]

§

type Error = EndOfSlice

source§

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

source§

impl Write for Vec<u8>

§

type Error = Infallible

source§

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

source§

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

§

type Error = <W as Write>::Error

source§

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

Implementors§

source§

impl Write for Cursor<&mut [u8]>

source§

impl Write for Cursor<Box<[u8]>>

source§

impl<W: Write> Write for Writer<W>

§

type Error = Error

source§

impl<const N: usize> Write for Cursor<[u8; N]>