Trait IoWrite

Source
pub trait IoWrite {
    type Error: Error;

    // Required method
    fn write_byte(&mut self, byte: u8) -> Result<(), Self::Error>;

    // Provided method
    fn write_bytes(&mut self, buf: &[u8]) -> Result<(), Self::Error> { ... }
}

Required Associated Types§

Required Methods§

Source

fn write_byte(&mut self, byte: u8) -> Result<(), Self::Error>

Provided Methods§

Source

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

Implementors§

Source§

impl IoWrite for SliceWriter<'_>

Source§

impl<W> IoWrite for W
where W: Write,

Available on crate feature std only.