ByteWriter

Trait ByteWriter 

Source
pub trait ByteWriter {
    // Required method
    fn write(&mut self, byte: u8) -> Result<(), OutError>;
}
Expand description

A trait for objects which are byte-oriented sinks.

This trait looks similar to Write trait; major difference is for the write method to return Error type

Required Methods§

Source

fn write(&mut self, byte: u8) -> Result<(), OutError>

Implementors§

Source§

impl<W: Write> ByteWriter for bread_cli::ascii::Writer<W>

Source§

impl<W: Write> ByteWriter for bread_cli::base::Writer<W>

Source§

impl<W: Write> ByteWriter for bread_cli::binary::Writer<W>

Source§

impl<W: Write> ByteWriter for bread_cli::hexadecimal::Writer<W>

Source§

impl<W: Write> ByteWriter for bread_cli::raw::Writer<W>