[−][src]Enum allsorts::binary::read::ReadArrayCow
Variants
Borrowed(ReadArray<'a, T>)
Methods
impl<'a, T: ReadUnchecked<'a>> ReadArrayCow<'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> where
T::HostType: Copy,
[src]
T::HostType: Copy,
pub fn get_item(&self, index: usize) -> <T as ReadUnchecked<'a>>::HostType where
T: ReadUnchecked<'a>,
<T as ReadUnchecked<'a>>::HostType: Copy,
[src]
T: ReadUnchecked<'a>,
<T as ReadUnchecked<'a>>::HostType: Copy,
ⓘImportant traits for ReadArrayCowIter<'a, 'b, T>pub fn iter<'b>(&'b self) -> ReadArrayCowIter<'a, 'b, T>
[src]
ⓘImportant traits for ReadArrayCowIter<'a, 'b, T>
Trait Implementations
impl<'a, T: ReadUnchecked<'a>> CheckIndex for ReadArrayCow<'a, T>
[src]
fn check_index(&self, index: usize) -> Result<(), ParseError>
[src]
impl<'a, '_, T> WriteBinary<&'_ ReadArrayCow<'a, T>> for ReadArrayCow<'a, T> where
T: ReadUnchecked<'a> + WriteBinary<<T as ReadUnchecked<'a>>::HostType>,
T::HostType: Copy,
[src]
T: ReadUnchecked<'a> + WriteBinary<<T as ReadUnchecked<'a>>::HostType>,
T::HostType: Copy,
type Output = ()
The type of the value returned by write
.
fn write<C: WriteContext>(ctxt: &mut C, array: &Self) -> Result<(), WriteError>
[src]
impl<'a, 'b, T: ReadUnchecked<'a>> IntoIterator for &'b ReadArrayCow<'a, T> where
T::HostType: Copy,
[src]
T::HostType: Copy,
type Item = T::HostType
The type of the elements being iterated over.
type IntoIter = ReadArrayCowIter<'a, 'b, T>
Which kind of iterator are we turning this into?
ⓘImportant traits for ReadArrayCowIter<'a, 'b, T>fn into_iter(self) -> ReadArrayCowIter<'a, 'b, T>
[src]
ⓘImportant traits for ReadArrayCowIter<'a, 'b, T>
impl<'a, T: Clone> Clone for ReadArrayCow<'a, T> where
T: ReadUnchecked<'a>,
T::HostType: Clone,
[src]
T: ReadUnchecked<'a>,
T::HostType: Clone,
fn clone(&self) -> ReadArrayCow<'a, T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, T> Debug for ReadArrayCow<'a, T> where
T: ReadUnchecked<'a>,
<T as ReadUnchecked<'a>>::HostType: Copy + Debug,
[src]
T: ReadUnchecked<'a>,
<T as ReadUnchecked<'a>>::HostType: Copy + Debug,
Auto Trait Implementations
impl<'a, T> Send for ReadArrayCow<'a, T> where
T: ReadBinary<'a>,
<T as ReadUnchecked<'a>>::HostType: Send,
T: ReadBinary<'a>,
<T as ReadUnchecked<'a>>::HostType: Send,
impl<'a, T> Sync for ReadArrayCow<'a, T> where
T: ReadBinary<'a>,
<T as ReadUnchecked<'a>>::HostType: Sync,
T: ReadBinary<'a>,
<T as ReadUnchecked<'a>>::HostType: Sync,
impl<'a, T> Unpin for ReadArrayCow<'a, T> where
T: ReadBinary<'a>,
<T as ReadUnchecked<'a>>::HostType: Unpin,
T: ReadBinary<'a>,
<T as ReadUnchecked<'a>>::HostType: Unpin,
impl<'a, T> UnwindSafe for ReadArrayCow<'a, T> where
T: ReadBinary<'a>,
<T as ReadUnchecked<'a>>::HostType: UnwindSafe,
T: ReadBinary<'a>,
<T as ReadUnchecked<'a>>::HostType: UnwindSafe,
impl<'a, T> RefUnwindSafe for ReadArrayCow<'a, T> where
T: ReadBinary<'a>,
<T as ReadUnchecked<'a>>::HostType: RefUnwindSafe,
T: ReadBinary<'a>,
<T as ReadUnchecked<'a>>::HostType: RefUnwindSafe,
Blanket Implementations
impl<T, HostType> WriteBinaryDep<HostType> for T where
T: WriteBinary<HostType>,
[src]
T: WriteBinary<HostType>,
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
.
fn write_dep<C>(
&mut C,
HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
[src]
&mut C,
HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,