parity_scale_codec

Trait Output

Source
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§

Source

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

Write to the output.

Provided Methods§

Source

fn push_byte(&mut self, byte: u8)

Write a single byte to the output.

Implementors§

Source§

impl<W: Write> Output for W