[][src]Trait parity_scale_codec::Output

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

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

Trait that allows writing of data.

Required methods

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

Write to the output.

Loading content...

Provided methods

pub fn push_byte(&mut self, byte: u8)[src]

Write a single byte to the output.

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

Write encoding of given value to the output.

Loading content...

Implementors

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

Loading content...