Enum allsorts_no_std::binary::read::ReadArrayCow [−][src]
Variants
Borrowed(ReadArray<'a, T>)
Implementations
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,
pub fn iter<'b>(&'b self) -> ReadArrayCowIter<'a, 'b, T>ⓘNotable traits for ReadArrayCowIter<'a, 'b, T>
impl<'a, 'b, T: ReadUnchecked<'a>> Iterator for ReadArrayCowIter<'a, 'b, T> where
T::HostType: Copy, type Item = T::HostType;
[src]
Notable traits for ReadArrayCowIter<'a, 'b, T>
impl<'a, 'b, T: ReadUnchecked<'a>> Iterator for ReadArrayCowIter<'a, 'b, T> where
T::HostType: Copy, type Item = T::HostType;
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: 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]
pub 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,
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?
fn into_iter(self) -> ReadArrayCowIter<'a, 'b, T>ⓘNotable traits for ReadArrayCowIter<'a, 'b, T>
impl<'a, 'b, T: ReadUnchecked<'a>> Iterator for ReadArrayCowIter<'a, 'b, T> where
T::HostType: Copy, type Item = T::HostType;
[src]
Notable traits for ReadArrayCowIter<'a, 'b, T>
impl<'a, 'b, T: ReadUnchecked<'a>> Iterator for ReadArrayCowIter<'a, 'b, T> where
T::HostType: Copy, type Item = T::HostType;
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]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for ReadArrayCow<'a, T> where
<T as ReadUnchecked<'a>>::HostType: RefUnwindSafe,
<T as ReadUnchecked<'a>>::HostType: RefUnwindSafe,
impl<'a, T> Send for ReadArrayCow<'a, T> where
<T as ReadUnchecked<'a>>::HostType: Send,
<T as ReadUnchecked<'a>>::HostType: Send,
impl<'a, T> Sync for ReadArrayCow<'a, T> where
<T as ReadUnchecked<'a>>::HostType: Sync,
<T as ReadUnchecked<'a>>::HostType: Sync,
impl<'a, T> Unpin for ReadArrayCow<'a, T> where
<T as ReadUnchecked<'a>>::HostType: Unpin,
<T as ReadUnchecked<'a>>::HostType: Unpin,
impl<'a, T> UnwindSafe for ReadArrayCow<'a, T> where
<T as ReadUnchecked<'a>>::HostType: UnwindSafe,
<T as ReadUnchecked<'a>>::HostType: 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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
.
pub 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,