pub struct ReadArray<'a, T: ReadFixedSizeDep> { /* private fields */ }Implementations§
Source§impl<'a, T: ReadFixedSizeDep> ReadArray<'a, T>
impl<'a, T: ReadFixedSizeDep> ReadArray<'a, T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn args(&self) -> &T::Args<'a>
pub fn read_item(&self, index: usize) -> Result<T::HostType<'a>, ParseError>
pub fn get_item(&self, index: usize) -> <T as ReadUnchecked>::HostTypewhere
T: ReadUnchecked,
pub fn last(&self) -> Option<<T as ReadUnchecked>::HostType>where
T: ReadUnchecked,
pub fn to_vec(&self) -> Vec<<T as ReadUnchecked>::HostType>where
T: ReadUnchecked,
pub fn read_to_vec(&self) -> Result<Vec<T::HostType<'a>>, ParseError>
pub fn iter(&self) -> ReadArrayIter<'a, T> ⓘwhere
T: ReadUnchecked,
pub fn iter_res<'b>(&'b self) -> ReadArrayDepIter<'a, 'b, T> ⓘ
pub fn binary_search_by<F>(&self, f: F) -> Result<usize, usize>
Trait Implementations§
Source§impl<'a, T: ReadFixedSizeDep> CheckIndex for ReadArray<'a, T>
impl<'a, T: ReadFixedSizeDep> CheckIndex for ReadArray<'a, T>
fn check_index(&self, index: usize) -> Result<(), ParseError>
Source§impl<'a, 'b, T: ReadUnchecked> IntoIterator for &'b ReadArray<'a, T>
impl<'a, 'b, T: ReadUnchecked> IntoIterator for &'b ReadArray<'a, T>
Source§type Item = <T as ReadUnchecked>::HostType
type Item = <T as ReadUnchecked>::HostType
The type of the elements being iterated over.
Source§type IntoIter = ReadArrayIter<'a, T>
type IntoIter = ReadArrayIter<'a, T>
Which kind of iterator are we turning this into?
Source§impl<'a, T> WriteBinary for &ReadArray<'a, T>
impl<'a, T> WriteBinary for &ReadArray<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ReadArray<'a, T>
impl<'a, T> RefUnwindSafe for ReadArray<'a, T>
impl<'a, T> Send for ReadArray<'a, T>
impl<'a, T> Sync for ReadArray<'a, T>
impl<'a, T> Unpin for ReadArray<'a, T>
impl<'a, T> UnwindSafe for ReadArray<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more