Write

Trait Write 

Source
pub trait Write {
    type Error: Debug + Display;

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

Interface to write bytes

Required Associated Types§

Required Methods§

Source

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

Writes bytes

Implementations on Foreign Types§

Source§

impl Write for Vec<u8>

Source§

type Error = Infallible

Source§

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

Source§

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

Source§

type Error = <W as Write>::Error

Source§

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

Implementors§