pub struct BitUnpackIterator<'a, T: BitPacked + 'a> { /* private fields */ }Expand description
Iterator over full chunks of bitpacked array that yields unpacked chunks one at a time
Implementations§
Trait Implementations§
Source§impl<'a, T: BitPacked + 'a> LendingIterator for BitUnpackIterator<'a, T>
impl<'a, T: BitPacked + 'a> LendingIterator for BitUnpackIterator<'a, T>
Source§fn filter<F>(self, should_yield: F) -> Filter<Self, F>
fn filter<F>(self, should_yield: F) -> Filter<Self, F>
LendingIterator counterpart of Iterator::filter().Source§fn for_each(self, f: impl FnMut(Self::T))where
Self: Sized,
fn for_each(self, f: impl FnMut(Self::T))where
Self: Sized,
LendingIterator counterpart of Iterator::for_each().Source§fn fold<Acc>(self, acc: Acc, f: impl FnMut(Acc, Self::T) -> Acc) -> Accwhere
Self: Sized,
fn fold<Acc>(self, acc: Acc, f: impl FnMut(Acc, Self::T) -> Acc) -> Accwhere
Self: Sized,
LendingIterator counterpart of Iterator::fold().Source§fn try_for_each<Err>(
&mut self,
f: impl FnMut(Self::T) -> Result<(), Err>,
) -> Result<(), Err>
fn try_for_each<Err>( &mut self, f: impl FnMut(Self::T) -> Result<(), Err>, ) -> Result<(), Err>
LendingIterator counterpart of Iterator::try_for_each().Source§fn try_fold<Acc, Err>(
&mut self,
acc: Acc,
f: impl FnMut(Acc, Self::T) -> Result<Acc, Err>,
) -> Result<Acc, Err>
fn try_fold<Acc, Err>( &mut self, acc: Acc, f: impl FnMut(Acc, Self::T) -> Result<Acc, Err>, ) -> Result<Acc, Err>
LendingIterator counterpart of Iterator::try_fold().Source§fn all(&mut self, predicate: impl FnMut(Self::T) -> bool) -> boolwhere
Self: Sized,
fn all(&mut self, predicate: impl FnMut(Self::T) -> bool) -> boolwhere
Self: Sized,
LendingIterator counterpart of Iterator::all().Source§fn any(&mut self, predicate: impl FnMut(Self::T) -> bool) -> boolwhere
Self: Sized,
fn any(&mut self, predicate: impl FnMut(Self::T) -> bool) -> boolwhere
Self: Sized,
LendingIterator counterpart of Iterator::any().Source§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
LendingIterator counterpart of Iterator::by_ref().Source§fn count(self) -> usizewhere
Self: Sized,
fn count(self) -> usizewhere
Self: Sized,
LendingIterator counterpart of Iterator::count().Source§fn find<'find>(
&'find mut self,
predicate: impl FnMut(&Self::T) -> bool + 'find,
) -> Option<Self::T>where
Self: Sized,
fn find<'find>(
&'find mut self,
predicate: impl FnMut(&Self::T) -> bool + 'find,
) -> Option<Self::T>where
Self: Sized,
LendingIterator counterpart of Iterator::find().Source§fn fuse(self) -> Fuse<Self>where
Self: Sized,
fn fuse(self) -> Fuse<Self>where
Self: Sized,
LendingIterator counterpart of Iterator::fuse().Source§fn nth(&mut self, n: usize) -> Option<Self::T>
fn nth(&mut self, n: usize) -> Option<Self::T>
LendingIterator counterpart of Iterator::nth().Source§fn position<F>(
&mut self,
predicate: impl FnMut(Self::T) -> bool,
) -> Option<usize>where
Self: Sized,
fn position<F>(
&mut self,
predicate: impl FnMut(Self::T) -> bool,
) -> Option<usize>where
Self: Sized,
LendingIterator counterpart of Iterator::position().Source§fn skip(self, count: usize) -> Skip<Self>where
Self: Sized,
fn skip(self, count: usize) -> Skip<Self>where
Self: Sized,
LendingIterator counterpart of Iterator::skip().Source§fn take(self, count: usize) -> Take<Self>where
Self: Sized,
fn take(self, count: usize) -> Take<Self>where
Self: Sized,
LendingIterator counterpart of Iterator::take().Source§fn map_to_ref<R, F>(
self,
f: F,
) -> Map<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ R>>>
fn map_to_ref<R, F>( self, f: F, ) -> Map<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ R>>>
Source§fn map_to_mut<R, F>(
self,
f: F,
) -> Map<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ mut R>>>
fn map_to_mut<R, F>( self, f: F, ) -> Map<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ mut R>>>
Source§fn map_into_iter<F, NonLendingItem>(self, f: F) -> MapIntoIter<Self, F> ⓘ
fn map_into_iter<F, NonLendingItem>(self, f: F) -> MapIntoIter<Self, F> ⓘ
Convenience shorthand for
.map…(…).into_iter(). Read moreSource§fn filter_map<NewItemType, F>(self, f: F) -> FilterMap<Self, F, NewItemType>
fn filter_map<NewItemType, F>(self, f: F) -> FilterMap<Self, F, NewItemType>
Source§fn filter_map_to_ref<R, F>(
self,
f: F,
) -> FilterMap<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ R>>>
fn filter_map_to_ref<R, F>( self, f: F, ) -> FilterMap<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ R>>>
Convenience method: same as
.filter_map(), but for hard-coding the
HKT parameter to HKTRef<R> = HKT!(&R). Read moreSource§fn filter_map_to_mut<R, F>(
self,
f: F,
) -> FilterMap<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ mut R>>>
fn filter_map_to_mut<R, F>( self, f: F, ) -> FilterMap<Self, F, HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = &'ඞ mut R>>>
Convenience method: same as
.filter_map(), but for hard-coding the
HKT parameter to HKTRefMut<R> = HKT!(&mut R). Read moreSource§fn filter_map_into_iter<F, NonLendingItem>(
self,
f: F,
) -> FilterMapIntoIter<Self, F> ⓘ
fn filter_map_into_iter<F, NonLendingItem>( self, f: F, ) -> FilterMapIntoIter<Self, F> ⓘ
Convenience shorthand for
.filter_map…(…).into_iter(). Read moreSource§fn into_iter<Item>(self) -> IntoIter<Self> ⓘwhere
Self: for<'any> LendingIteratorඞItem<'any, T = Item> + Sized,
fn into_iter<Item>(self) -> IntoIter<Self> ⓘwhere
Self: for<'any> LendingIteratorඞItem<'any, T = Item> + Sized,
Source§fn dyn_boxed<'usability>(
self,
) -> Box<dyn LendingIteratorDyn<Item = HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = Self::T>>> + 'usability>where
Self: 'usability + Sized,
fn dyn_boxed<'usability>(
self,
) -> Box<dyn LendingIteratorDyn<Item = HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = Self::T>>> + 'usability>where
Self: 'usability + Sized,
Source§fn dyn_boxed_auto<BoxedDynLendingIterator, Item>(
self,
) -> BoxedDynLendingIterator
fn dyn_boxed_auto<BoxedDynLendingIterator, Item>( self, ) -> BoxedDynLendingIterator
Source§impl<'next, 'a, T: BitPacked + 'a> LendingIteratorඞItem<'next> for BitUnpackIterator<'a, T>
impl<'next, 'a, T: BitPacked + 'a> LendingIteratorඞItem<'next> for BitUnpackIterator<'a, T>
Auto Trait Implementations§
impl<'a, T> !UnwindSafe for BitUnpackIterator<'a, T>
impl<'a, T> Freeze for BitUnpackIterator<'a, T>where
<T as PhysicalPType>::Physical: Sized,
&'a [<T as PhysicalPType>::Physical]: Freeze,
&'a mut [MaybeUninit<T>; 1024]: Freeze,
impl<'a, T> RefUnwindSafe for BitUnpackIterator<'a, T>where
<T as PhysicalPType>::Physical: Sized,
&'a [<T as PhysicalPType>::Physical]: RefUnwindSafe,
&'a mut [MaybeUninit<T>; 1024]: RefUnwindSafe,
impl<'a, T> Send for BitUnpackIterator<'a, T>where
<T as PhysicalPType>::Physical: Sized,
&'a [<T as PhysicalPType>::Physical]: Send,
&'a mut [MaybeUninit<T>; 1024]: Send,
impl<'a, T> Sync for BitUnpackIterator<'a, T>where
<T as PhysicalPType>::Physical: Sized,
&'a [<T as PhysicalPType>::Physical]: Sync,
&'a mut [MaybeUninit<T>; 1024]: Sync,
impl<'a, T> Unpin for BitUnpackIterator<'a, T>where
<T as PhysicalPType>::Physical: Sized,
&'a [<T as PhysicalPType>::Physical]: Unpin,
&'a mut [MaybeUninit<T>; 1024]: Unpin,
impl<'a, T> UnsafeUnpin for BitUnpackIterator<'a, T>where
<T as PhysicalPType>::Physical: Sized,
&'a [<T as PhysicalPType>::Physical]: UnsafeUnpin,
&'a mut [MaybeUninit<T>; 1024]: UnsafeUnpin,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> LendingIteratorDyn for Twhere
T: LendingIterator,
impl<T> LendingIteratorDyn for Twhere
T: LendingIterator,
Source§type Item = HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = <T as LendingIteratorඞItem<'ඞ>>::T>>
type Item = HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = <T as LendingIteratorඞItem<'ඞ>>::T>>
Source§fn dyn_next<'n>(
&'n mut self,
) -> Option<<HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = <T as LendingIteratorඞItem<'ඞ>>::T>> as WithLifetime<'n>>::T>
fn dyn_next<'n>( &'n mut self, ) -> Option<<HKT<dyn for<'ඞ> WithLifetime<'ඞ, T = <T as LendingIteratorඞItem<'ඞ>>::T>> as WithLifetime<'n>>::T>
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.