[][src]Trait parity_codec::Input

pub trait Input {
    fn read(&mut self, into: &mut [u8]) -> usize;

    fn read_byte(&mut self) -> Option<u8> { ... }

Trait that allows reading of data into a slice.

Required methods

fn read(&mut self, into: &mut [u8]) -> usize

Read into the provided input slice. Returns the number of bytes read.

Loading content...

Provided methods

fn read_byte(&mut self) -> Option<u8>

Read a single byte from the input.

Loading content...


impl<R: Read> Input for R[src]

fn read_byte(&mut self) -> Option<u8>[src]

Loading content...