Trait parity_scale_codec::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