[][src]Trait frame_support::dispatch::Output

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

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

Trait that allows writing of data.

Required methods

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

Write to the output.

Loading content...

Provided methods

fn push_byte(&mut self, byte: u8)

Write a single byte to the output.

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

Write encoding of given value to the output.

Loading content...

Implementors

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

Loading content...