[][src]Trait binread::io::Read

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

    fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> { ... }
fn iter_bytes(&mut self) -> Bytes<'_, Self>

Notable traits for Bytes<'a, R>

impl<'a, R: Read> Iterator for Bytes<'a, R> type Item = Result<u8>;

    where
        Self: Sized
, { ... } }

A simplified version of std::io::Read for use in no_std environments

Required methods

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

Loading content...

Provided methods

fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>

fn iter_bytes(&mut self) -> Bytes<'_, Self>

Notable traits for Bytes<'a, R>

impl<'a, R: Read> Iterator for Bytes<'a, R> type Item = Result<u8>;
where
    Self: Sized

Loading content...

Implementors

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

impl<T: AsRef<[u8]>> Read for Cursor<T>[src]

Loading content...