[][src]Trait susy_codec::Input

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

    fn read_byte(&mut self) -> Result<u8, Error> { ... }
}

Trait that allows reading of data into a slice.

Required methods

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

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

Loading content...

Provided methods

fn read_byte(&mut self) -> Result<u8, Error>

Read a single byte from the input.

Loading content...

Implementors

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

fn read_byte(&mut self) -> Result<u8, Error>[src]

Loading content...