pub struct ReadArray<'a, T: ReadFixedSizeDep<'a>> { /* private fields */ }
Implementations
sourceimpl<'a, T: ReadFixedSizeDep<'a>> ReadArray<'a, T>
impl<'a, T: ReadFixedSizeDep<'a>> ReadArray<'a, T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn read_item(&self, index: usize) -> Result<T::HostType, ParseError>
pub fn get_item(&self, index: usize) -> <T as ReadUnchecked<'a>>::HostType where
T: ReadUnchecked<'a>,
pub fn subarray(&self, index: usize) -> Self
pub fn to_vec(&self) -> Vec<<T as ReadUnchecked<'a>>::HostType> where
T: ReadUnchecked<'a>,
pub fn read_to_vec(&self) -> Result<Vec<T::HostType>, ParseError>
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>,
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>;
Trait Implementations
sourceimpl<'a, T: ReadFixedSizeDep<'a>> CheckIndex for ReadArray<'a, T>
impl<'a, T: ReadFixedSizeDep<'a>> CheckIndex for ReadArray<'a, T>
fn check_index(&self, index: usize) -> Result<(), ParseError>
sourceimpl<'a, T> Debug for ReadArray<'a, T> where
T: ReadUnchecked<'a>,
<T as ReadUnchecked<'a>>::HostType: Copy + Debug,
impl<'a, T> Debug for ReadArray<'a, T> where
T: ReadUnchecked<'a>,
<T as ReadUnchecked<'a>>::HostType: Copy + Debug,
sourceimpl<'a, 'b, T: ReadUnchecked<'a>> IntoIterator for &'b ReadArray<'a, T>
impl<'a, 'b, T: ReadUnchecked<'a>> IntoIterator for &'b ReadArray<'a, T>
type Item = <T as ReadUnchecked<'a>>::HostType
type Item = <T as ReadUnchecked<'a>>::HostType
The type of the elements being iterated over.
type IntoIter = ReadArrayIter<'a, T>
type IntoIter = ReadArrayIter<'a, T>
Which kind of iterator are we turning this into?
sourcefn into_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;
fn into_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;
Creates an iterator from a value. Read more
sourceimpl<'a, T> WriteBinary<&'_ ReadArray<'a, T>> for &ReadArray<'a, T> where
T: ReadUnchecked<'a> + WriteBinary<<T as ReadUnchecked<'a>>::HostType>,
impl<'a, T> WriteBinary<&'_ ReadArray<'a, T>> for &ReadArray<'a, T> where
T: ReadUnchecked<'a> + WriteBinary<<T as ReadUnchecked<'a>>::HostType>,
sourcefn write<C: WriteContext>(ctxt: &mut C, array: Self) -> Result<(), WriteError>
fn write<C: WriteContext>(ctxt: &mut C, array: Self) -> Result<(), WriteError>
Write the binary representation of Self to ctxt
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more