Struct allsorts_no_std::binary::read::ReadArray [−][src]
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]
T: ReadUnchecked<'a>,
pub fn subarray(&self, index: usize) -> Self
[src]
pub fn to_vec(&self) -> Vec<<T as ReadUnchecked<'a>>::HostType> where
T: ReadUnchecked<'a>,
[src]
T: ReadUnchecked<'a>,
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]
Notable traits for ReadArrayIter<'a, T>
impl<'a, T: ReadUnchecked<'a>> Iterator for ReadArrayIter<'a, T> type Item = T::HostType;
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>;
[src]
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>;
impl<'a, T: ReadUnchecked<'a>> ReadArray<'a, T>
[src]
Trait Implementations
impl<'a, T: ReadFixedSizeDep<'a>> CheckIndex for ReadArray<'a, T>
[src]
fn check_index(&self, index: usize) -> Result<(), ParseError>
[src]
impl<'a, T: Clone + ReadFixedSizeDep<'a>> Clone for ReadArray<'a, T> where
T::Args: Clone,
[src]
T::Args: Clone,
impl<'a, T> Debug for ReadArray<'a, T> where
T: ReadUnchecked<'a>,
<T as ReadUnchecked<'a>>::HostType: Copy + Debug,
[src]
T: ReadUnchecked<'a>,
<T as ReadUnchecked<'a>>::HostType: Copy + Debug,
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?
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;
[src]
Notable traits for ReadArrayIter<'a, T>
impl<'a, T: ReadUnchecked<'a>> Iterator for ReadArrayIter<'a, T> type Item = T::HostType;
impl<'a, T> WriteBinary<&'_ ReadArray<'a, T>> for &ReadArray<'a, T> where
T: ReadUnchecked<'a> + WriteBinary<<T as ReadUnchecked<'a>>::HostType>,
[src]
T: ReadUnchecked<'a> + WriteBinary<<T as ReadUnchecked<'a>>::HostType>,
type Output = ()
The type of the value returned by write
.
fn write<C: WriteContext>(ctxt: &mut C, array: Self) -> Result<(), WriteError>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for ReadArray<'a, T> where
<T as ReadBinaryDep<'a>>::Args: RefUnwindSafe,
<T as ReadBinaryDep<'a>>::Args: RefUnwindSafe,
impl<'a, T> Send for ReadArray<'a, T> where
<T as ReadBinaryDep<'a>>::Args: Send,
<T as ReadBinaryDep<'a>>::Args: Send,
impl<'a, T> Sync for ReadArray<'a, T> where
<T as ReadBinaryDep<'a>>::Args: Sync,
<T as ReadBinaryDep<'a>>::Args: Sync,
impl<'a, T> Unpin for ReadArray<'a, T> where
<T as ReadBinaryDep<'a>>::Args: Unpin,
<T as ReadBinaryDep<'a>>::Args: Unpin,
impl<'a, T> UnwindSafe for ReadArray<'a, T> where
<T as ReadBinaryDep<'a>>::Args: UnwindSafe,
<T as ReadBinaryDep<'a>>::Args: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,