[][src]Trait parity_scale_codec::Output

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

    fn push_byte(&mut self, byte: u8) { ... }
fn push<V: Encode + ?Sized>(&mut self, value: &V) { ... } }
[]

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.

fn push<V: Encode + ?Sized>(&mut self, value: &V)[]

Write encoding of given value to the output.

Implementors

impl<W: Write> Output for W[src][+]