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

pub struct ReadArray<'a, T: ReadFixedSizeDep<'a>> { /* fields omitted */ }

Implementations

impl<'a, T: ReadFixedSizeDep<'a>> ReadArray<'a, T>[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn read_item(&self, index: usize) -> Result<T::HostType, ParseError>[src]

pub fn get_item(&self, index: usize) -> <T as ReadUnchecked<'a>>::HostType where
    T: ReadUnchecked<'a>, 
[src]

pub fn subarray(&self, index: usize) -> Self[src]

pub fn to_vec(&self) -> Vec<<T as ReadUnchecked<'a>>::HostType> where
    T: ReadUnchecked<'a>, 
[src]

pub fn read_to_vec(&self) -> Result<Vec<T::HostType>, ParseError>[src]

pub fn iter(&self) -> ReadArrayIter<'a, T>

Notable traits for ReadArrayIter<'a, T>

impl<'a, T: ReadUnchecked<'a>> Iterator for ReadArrayIter<'a, T> type Item = T::HostType;
where
    T: ReadUnchecked<'a>, 
[src]

pub fn iter_res<'b>(&'b self) -> ReadArrayDepIter<'a, 'b, T>

Notable traits for ReadArrayDepIter<'a, 'b, T>

impl<'a, 'b, T: ReadFixedSizeDep<'a>> Iterator for ReadArrayDepIter<'a, 'b, T> type Item = Result<T::HostType, ParseError>;
[src]

impl<'a, T: ReadUnchecked<'a>> ReadArray<'a, T>[src]

pub fn empty() -> ReadArray<'a, T>[src]

Trait Implementations

impl<'a, T: ReadFixedSizeDep<'a>> CheckIndex for ReadArray<'a, T>[src]

impl<'a, T: Clone + ReadFixedSizeDep<'a>> Clone for ReadArray<'a, T> where
    T::Args: Clone
[src]

impl<'a, T> Debug for ReadArray<'a, T> where
    T: ReadUnchecked<'a>,
    <T as ReadUnchecked<'a>>::HostType: Copy + Debug
[src]

impl<'a, 'b, T: ReadUnchecked<'a>> IntoIterator for &'b ReadArray<'a, T>[src]

type Item = T::HostType

The type of the elements being iterated over.

type IntoIter = ReadArrayIter<'a, T>

Which kind of iterator are we turning this into?

impl<'a, T> WriteBinary<&'_ ReadArray<'a, T>> for &ReadArray<'a, T> where
    T: ReadUnchecked<'a> + WriteBinary<<T as ReadUnchecked<'a>>::HostType>, 
[src]

type Output = ()

The type of the value returned by write.

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for ReadArray<'a, T> where
    <T as ReadBinaryDep<'a>>::Args: RefUnwindSafe

impl<'a, T> Send for ReadArray<'a, T> where
    <T as ReadBinaryDep<'a>>::Args: Send

impl<'a, T> Sync for ReadArray<'a, T> where
    <T as ReadBinaryDep<'a>>::Args: Sync

impl<'a, T> Unpin for ReadArray<'a, T> where
    <T as ReadBinaryDep<'a>>::Args: Unpin

impl<'a, T> UnwindSafe for ReadArray<'a, T> where
    <T as ReadBinaryDep<'a>>::Args: UnwindSafe

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.