[][src]Trait preserves::value::reader::BinarySource

pub trait BinarySource<'de> {
    fn skip(&mut self) -> IOResult<()>;
fn peek(&mut self) -> IOResult<u8>;
fn readbytes(&mut self, count: usize) -> IOResult<Cow<'de, [u8]>>;
fn readbytes_into(&mut self, bs: &mut [u8]) -> IOResult<()>; }

Required methods

fn skip(&mut self) -> IOResult<()>

fn peek(&mut self) -> IOResult<u8>

fn readbytes(&mut self, count: usize) -> IOResult<Cow<'de, [u8]>>

fn readbytes_into(&mut self, bs: &mut [u8]) -> IOResult<()>

Loading content...

Implementors

impl<'de> BinarySource<'de> for BytesBinarySource<'de>[src]

impl<'de, 'a, R: Read> BinarySource<'de> for IOBinarySource<'a, R>[src]

impl<'de, S: BinarySource<'de>> BinarySource<'de> for BinaryReader<'de, S>[src]

Loading content...