pub trait Output {
    // Required method
    fn write(&mut self, bytes: &[u8]);

    // Provided method
    fn push_byte(&mut self, byte: u8) { ... }
}
Expand description

Trait that allows writing of data.

Required Methods§

fn write(&mut self, bytes: &[u8])

Write to the output.

Provided Methods§

fn push_byte(&mut self, byte: u8)

Write a single byte to the output.

Implementors§

§

impl<W> Output for Wwhere W: Write,