Struct allsorts_no_std::binary::read::ReadScope[][src]

pub struct ReadScope<'a> { /* fields omitted */ }

Implementations

impl<'a> ReadScope<'a>[src]

pub fn new(data: &'a [u8]) -> ReadScope<'a>[src]

pub fn data(&self) -> &'a [u8][src]

pub fn offset(&self, offset: usize) -> ReadScope<'a>[src]

pub fn offset_length(
    &self,
    offset: usize,
    length: usize
) -> Result<ReadScope<'a>, ParseError>
[src]

pub fn ctxt(&self) -> ReadCtxt<'a>[src]

pub fn read<T: ReadBinaryDep<'a, Args = ()>>(
    &self
) -> Result<T::HostType, ParseError>
[src]

pub fn read_dep<T: ReadBinaryDep<'a>>(
    &self,
    args: T::Args
) -> Result<T::HostType, ParseError>
[src]

pub fn read_cache<'b, T>(
    &self,
    cache: &mut ReadCache<T::HostType>
) -> Result<Rc<T::HostType>, ParseError> where
    T: 'static + ReadBinaryDep<'a, Args = ()>, 
[src]

pub fn read_cache_state<'b, T, Table>(
    &self,
    cache: &mut ReadCache<T::HostType>,
    state: LayoutCache<Table>
) -> Result<Rc<T::HostType>, ParseError> where
    T: 'static + ReadBinaryDep<'a, Args = LayoutCache<Table>>,
    Table: LayoutTableType
[src]

Trait Implementations

impl<'a> Clone for ReadScope<'a>[src]

impl<'a> Debug for ReadScope<'a>[src]

impl<'a> PartialEq<ReadScope<'a>> for ReadScope<'a>[src]

impl<'a> StructuralPartialEq for ReadScope<'a>[src]

impl<'a> WriteBinary<ReadScope<'a>> for ReadScope<'a>[src]

type Output = ()

The type of the value returned by write.

Auto Trait Implementations

impl<'a> RefUnwindSafe for ReadScope<'a>

impl<'a> Send for ReadScope<'a>

impl<'a> Sync for ReadScope<'a>

impl<'a> Unpin for ReadScope<'a>

impl<'a> UnwindSafe for ReadScope<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, HostType> WriteBinaryDep<HostType> for T where
    T: WriteBinary<HostType>, 
[src]

type Args = ()

The type of the arguments supplied to write_dep.

type Output = <T as WriteBinary<HostType>>::Output

The type of the value returned by write_dep.