Trait binreader::OwnableBinReader[][src]

pub trait OwnableBinReader<'r>: BinReader<'r> {
    fn from_file_with_offset<P: AsRef<Path>>(
        path: P,
        initial_offset: usize,
        endidness: Endidness
    ) -> Result<Self>;
fn from_bytes_with_offset(
        bytes: Bytes,
        initial_offset: usize,
        endidness: Endidness
    ) -> Result<Self>; fn from_file<P: AsRef<Path>>(path: P, endidness: Endidness) -> Result<Self> { ... }
fn from_bytes(bytes: Bytes, endidness: Endidness) -> Result<Self> { ... } }
Expand description

An implementor of OwnableBinReader owns the data contained within it. This means that they can be built from more from more source (such as a bytes::Bytes instance of a file.

Required methods

Provided methods

Implementors