pub struct StridedIter<'a, T> { /* private fields */ }Expand description
๐ Iterates over a slice using an affine index progression.
๐ data/access/iter
This is the immutable counterpart of StridedIterMut.
Elements are accessed according to:
index_k = front + k * stride
for increasing k, until the inclusive bound back is reached.
The iterator supports forward and backward traversal.
This type is dimension-agnostic and suitable for:
- Traversing rows, columns, or diagonals of a 2D layout.
- Projecting channels from interleaved buffers (e.g. RGBRGBโฆ).
- Downsampling by stepping every
strideelements. - Iterating a collapsed axis of an n-dimensional layout.
ยงInvariants
stride > 0.front <= back, or the iterator is empty.- All generated indices lie within
storage.
If these conditions are violated, advancing or peeking may panic. No unsafe code is used.
Implementationsยง
Sourceยงimpl<'a, T> StridedIter<'a, T>
impl<'a, T> StridedIter<'a, T>
Sourcepub const fn from_count(
slice: &'a [T],
start: usize,
remaining: usize,
stride: usize,
) -> Self
pub const fn from_count( slice: &'a [T], start: usize, remaining: usize, stride: usize, ) -> Self
Creates a strided iterator from a starting index, a number of elements, and a stride.
Generates indices:
start + k * stride for k in 0..remaining.
ยงPanics
Panics if stride == 0.
May panic when advanced if indices are out of bounds.
Sourcepub const fn from_count_nz(
slice: &'a [T],
start: usize,
remaining: usize,
stride: NonZero<usize>,
) -> Self
pub const fn from_count_nz( slice: &'a [T], start: usize, remaining: usize, stride: NonZero<usize>, ) -> Self
Sourcepub const fn from_bounds(
slice: &'a [T],
front: usize,
back: usize,
stride: usize,
) -> Self
pub const fn from_bounds( slice: &'a [T], front: usize, back: usize, stride: usize, ) -> Self
Creates a strided iterator from inclusive front and back limits and a stride.
Iteration proceeds from front toward back (inclusive limit)
in steps of stride. The iterator is empty if front > back.
This constructor does not validate that generated indices
lie within the slice. Violations will cause panics during iteration.
ยงPanics
Panics if stride == 0.
May panic when advanced if indices are out of bounds.
Sourcepub const fn from_parts(
slice: &'a [T],
front: usize,
back: usize,
stride: NonZero<usize>,
) -> Self
pub const fn from_parts( slice: &'a [T], front: usize, back: usize, stride: NonZero<usize>, ) -> Self
Creates a strided iterator from its structural components.
The iterator traverses the slice starting at index front,
advancing by stride on each step, and stopping once back
has been yielded. The range is inclusive: both front and back
are considered valid positions.
The iterator is empty if front > back.
ยงPanics
Panics if:
front <= backand(back - front)is not a multiple ofstride.backis not a valid index in theslice.
Sourcepub const fn from_parts_usize(
slice: &'a [T],
front: usize,
back: usize,
stride: NonZero<usize>,
) -> Self
pub const fn from_parts_usize( slice: &'a [T], front: usize, back: usize, stride: NonZero<usize>, ) -> Self
Like from_parts but takes usize arguments.
ยงPanics
Panics if:
- Any argument canโt fit in
usize. front <= backand(back - front)is not a multiple ofstride.backis not a valid index in theslice.
Sourcepub const fn into_parts(self) -> (&'a [T], usize, usize, NonZero<usize>) โ
pub const fn into_parts(self) -> (&'a [T], usize, usize, NonZero<usize>) โ
Decomposes the iterator into its structural components.
Returns (slice, front, back, stride).
The returned values can be passed to from_parts
to reconstruct an equivalent iterator, or used to
transfer iteration state to another compatible type.
Sourcepub const fn into_parts_usize(self) -> (&'a [T], usize, usize, NonZeroUsize) โ
pub const fn into_parts_usize(self) -> (&'a [T], usize, usize, NonZeroUsize) โ
Like into_parts but returns usize elements.
Sourcepub const fn len_usize(&self) -> usize
pub const fn len_usize(&self) -> usize
Returns the number of elements remaining in the iterator as a usize.
ยงPanics
Will only panic if the value canโt fit in a usize.
Sourcepub const fn next(&mut self) -> Option<&T> โ
pub const fn next(&mut self) -> Option<&T> โ
Advances the iterator and returns a shared reference to the next value.
Sourcepub const fn peek(&self) -> Option<&T> โ
pub const fn peek(&self) -> Option<&T> โ
Returns a shared reference to the next value, without updating the iterator.
Trait Implementationsยง
Sourceยงimpl<'a, T: Debug> Debug for StridedIter<'a, T>
impl<'a, T: Debug> Debug for StridedIter<'a, T>
Sourceยงimpl<'a, T> DoubleEndedIterator for StridedIter<'a, T>
impl<'a, T> DoubleEndedIterator for StridedIter<'a, T>
Sourceยงfn next_back(&mut self) -> Option<Self::Item> โ
fn next_back(&mut self) -> Option<Self::Item> โ
Sourceยงfn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>> โ
fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>> โ
iter_advance_by)n elements. Read more1.37.0 (const: unstable) ยท Sourceยงfn nth_back(&mut self, n: usize) -> Option<Self::Item> โ
fn nth_back(&mut self, n: usize) -> Option<Self::Item> โ
nth element from the end of the iterator. Read more1.27.0 (const: unstable) ยท Sourceยงfn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
Iterator::try_fold(): it takes
elements starting from the back of the iterator. Read moreimpl<'a, T: Eq> Eq for StridedIter<'a, T>
Sourceยงimpl<T> ExactSizeIterator for StridedIter<'_, T>
impl<T> ExactSizeIterator for StridedIter<'_, T>
Sourceยงimpl<'a, T: Hash> Hash for StridedIter<'a, T>
impl<'a, T: Hash> Hash for StridedIter<'a, T>
Sourceยงimpl<'a, T> Iterator for StridedIter<'a, T>
impl<'a, T> Iterator for StridedIter<'a, T>
Sourceยงfn next(&mut self) -> Option<Self::Item> โ
fn next(&mut self) -> Option<Self::Item> โ
Sourceยงfn size_hint(&self) -> (usize, Option<usize>) โ
fn size_hint(&self) -> (usize, Option<usize>) โ
Sourceยงfn next_chunk<const N: usize>(
&mut self,
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>> โwhere
Self: Sized,
fn next_chunk<const N: usize>(
&mut self,
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>> โwhere
Self: Sized,
iter_next_chunk)N values. Read more1.0.0 (const: unstable) ยท Sourceยงfn count(self) -> usizewhere
Self: Sized,
fn count(self) -> usizewhere
Self: Sized,
1.0.0 (const: unstable) ยท Sourceยงfn last(self) -> Option<Self::Item> โwhere
Self: Sized,
fn last(self) -> Option<Self::Item> โwhere
Self: Sized,
Sourceยงfn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>> โ
fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>> โ
iter_advance_by)n elements. Read more1.0.0 (const: unstable) ยท Sourceยงfn nth(&mut self, n: usize) -> Option<Self::Item> โ
fn nth(&mut self, n: usize) -> Option<Self::Item> โ
nth element of the iterator. Read more1.28.0 (const: unstable) ยท Sourceยงfn step_by(self, step: usize) -> StepBy<Self> โwhere
Self: Sized,
fn step_by(self, step: usize) -> StepBy<Self> โwhere
Self: Sized,
1.0.0 (const: unstable) ยท Sourceยงfn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter> โ
fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter> โ
1.0.0 (const: unstable) ยท Sourceยงfn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter> โwhere
Self: Sized,
U: IntoIterator,
fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter> โwhere
Self: Sized,
U: IntoIterator,
Sourceยงfn intersperse(self, separator: Self::Item) -> Intersperse<Self> โ
fn intersperse(self, separator: Self::Item) -> Intersperse<Self> โ
iter_intersperse)separator between items
of the original iterator. Read moreSourceยงfn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G> โ
fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G> โ
iter_intersperse)separator
between items of the original iterator. Read more1.0.0 (const: unstable) ยท Sourceยงfn map<B, F>(self, f: F) -> Map<Self, F> โ
fn map<B, F>(self, f: F) -> Map<Self, F> โ
1.21.0 (const: unstable) ยท Sourceยงfn for_each<F>(self, f: F)
fn for_each<F>(self, f: F)
1.0.0 (const: unstable) ยท Sourceยงfn filter<P>(self, predicate: P) -> Filter<Self, P> โ
fn filter<P>(self, predicate: P) -> Filter<Self, P> โ
1.0.0 (const: unstable) ยท Sourceยงfn filter_map<B, F>(self, f: F) -> FilterMap<Self, F> โ
fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F> โ
1.0.0 (const: unstable) ยท Sourceยงfn enumerate(self) -> Enumerate<Self> โwhere
Self: Sized,
fn enumerate(self) -> Enumerate<Self> โwhere
Self: Sized,
1.0.0 (const: unstable) ยท Sourceยงfn take_while<P>(self, predicate: P) -> TakeWhile<Self, P> โ
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P> โ
1.57.0 (const: unstable) ยท Sourceยงfn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P> โ
fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P> โ
1.0.0 (const: unstable) ยท Sourceยงfn skip(self, n: usize) -> Skip<Self> โwhere
Self: Sized,
fn skip(self, n: usize) -> Skip<Self> โwhere
Self: Sized,
n elements. Read more1.0.0 (const: unstable) ยท Sourceยงfn take(self, n: usize) -> Take<Self> โwhere
Self: Sized,
fn take(self, n: usize) -> Take<Self> โwhere
Self: Sized,
n elements, or fewer
if the underlying iterator ends sooner. Read more1.0.0 (const: unstable) ยท Sourceยงfn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> โ
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> โ
1.0.0 (const: unstable) ยท Sourceยงfn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F> โ
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F> โ
1.29.0 (const: unstable) ยท Sourceยงfn flatten(self) -> Flatten<Self> โ
fn flatten(self) -> Flatten<Self> โ
Sourceยงfn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N> โ
fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N> โ
iter_map_windows)f for each contiguous window of size N over
self and returns an iterator over the outputs of f. Like slice::windows(),
the windows during mapping overlap as well. Read more1.0.0 (const: unstable) ยท Sourceยงfn inspect<F>(self, f: F) -> Inspect<Self, F> โ
fn inspect<F>(self, f: F) -> Inspect<Self, F> โ
1.0.0 (const: unstable) ยท Sourceยงfn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Iterator. Read more1.0.0 (const: unstable) ยท Sourceยงfn collect<B>(self) -> B
fn collect<B>(self) -> B
Sourceยงfn try_collect<B>(
&mut self,
) -> <<Self::Item as Try>::Residual as Residual<B>>::TryType
fn try_collect<B>( &mut self, ) -> <<Self::Item as Try>::Residual as Residual<B>>::TryType
iterator_try_collect)Sourceยงfn collect_into<E>(self, collection: &mut E) -> &mut E
fn collect_into<E>(self, collection: &mut E) -> &mut E
iter_collect_into)1.0.0 (const: unstable) ยท Sourceยงfn partition<B, F>(self, f: F) -> (B, B) โ
fn partition<B, F>(self, f: F) -> (B, B) โ
Sourceยงfn partition_in_place<'a, T, P>(self, predicate: P) -> usize
fn partition_in_place<'a, T, P>(self, predicate: P) -> usize
iter_partition_in_place)true precede all those that return false.
Returns the number of true elements found. Read moreSourceยงfn is_partitioned<P>(self, predicate: P) -> bool
fn is_partitioned<P>(self, predicate: P) -> bool
iter_is_partitioned)true precede all those that return false. Read more1.27.0 (const: unstable) ยท Sourceยงfn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
1.27.0 (const: unstable) ยท Sourceยงfn try_for_each<F, R>(&mut self, f: F) -> R
fn try_for_each<F, R>(&mut self, f: F) -> R
1.0.0 (const: unstable) ยท Sourceยงfn fold<B, F>(self, init: B, f: F) -> B
fn fold<B, F>(self, init: B, f: F) -> B
1.51.0 (const: unstable) ยท Sourceยงfn reduce<F>(self, f: F) -> Option<Self::Item> โ
fn reduce<F>(self, f: F) -> Option<Self::Item> โ
Sourceยงfn try_reduce<R>(
&mut self,
f: impl FnMut(Self::Item, Self::Item) -> R,
) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
fn try_reduce<R>( &mut self, f: impl FnMut(Self::Item, Self::Item) -> R, ) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
iterator_try_reduce)1.0.0 (const: unstable) ยท Sourceยงfn all<F>(&mut self, f: F) -> bool
fn all<F>(&mut self, f: F) -> bool
1.0.0 (const: unstable) ยท Sourceยงfn any<F>(&mut self, f: F) -> bool
fn any<F>(&mut self, f: F) -> bool
1.0.0 (const: unstable) ยท Sourceยงfn find<P>(&mut self, predicate: P) -> Option<Self::Item> โ
fn find<P>(&mut self, predicate: P) -> Option<Self::Item> โ
1.30.0 (const: unstable) ยท Sourceยงfn find_map<B, F>(&mut self, f: F) -> Option<B> โ
fn find_map<B, F>(&mut self, f: F) -> Option<B> โ
Sourceยงfn try_find<R>(
&mut self,
f: impl FnMut(&Self::Item) -> R,
) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
fn try_find<R>( &mut self, f: impl FnMut(&Self::Item) -> R, ) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
try_find)1.0.0 (const: unstable) ยท Sourceยงfn position<P>(&mut self, predicate: P) -> Option<usize> โ
fn position<P>(&mut self, predicate: P) -> Option<usize> โ
1.0.0 (const: unstable) ยท Sourceยงfn rposition<P>(&mut self, predicate: P) -> Option<usize> โ
fn rposition<P>(&mut self, predicate: P) -> Option<usize> โ
1.0.0 (const: unstable) ยท Sourceยงfn max(self) -> Option<Self::Item> โ
fn max(self) -> Option<Self::Item> โ
1.0.0 (const: unstable) ยท Sourceยงfn min(self) -> Option<Self::Item> โ
fn min(self) -> Option<Self::Item> โ
1.6.0 (const: unstable) ยท Sourceยงfn max_by_key<B, F>(self, f: F) -> Option<Self::Item> โ
fn max_by_key<B, F>(self, f: F) -> Option<Self::Item> โ
1.15.0 (const: unstable) ยท Sourceยงfn max_by<F>(self, compare: F) -> Option<Self::Item> โ
fn max_by<F>(self, compare: F) -> Option<Self::Item> โ
1.6.0 (const: unstable) ยท Sourceยงfn min_by_key<B, F>(self, f: F) -> Option<Self::Item> โ
fn min_by_key<B, F>(self, f: F) -> Option<Self::Item> โ
1.15.0 (const: unstable) ยท Sourceยงfn min_by<F>(self, compare: F) -> Option<Self::Item> โ
fn min_by<F>(self, compare: F) -> Option<Self::Item> โ
1.0.0 (const: unstable) ยท Sourceยงfn rev(self) -> Rev<Self> โwhere
Self: Sized + DoubleEndedIterator,
fn rev(self) -> Rev<Self> โwhere
Self: Sized + DoubleEndedIterator,
1.0.0 (const: unstable) ยท Sourceยงfn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB) โ
fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB) โ
1.36.0 (const: unstable) ยท Sourceยงfn copied<'a, T>(self) -> Copied<Self> โ
fn copied<'a, T>(self) -> Copied<Self> โ
Sourceยงfn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N> โwhere
Self: Sized,
fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N> โwhere
Self: Sized,
iter_array_chunks)N elements of the iterator at a time. Read more1.11.0 (const: unstable) ยท Sourceยงfn product<P>(self) -> P
fn product<P>(self) -> P
Sourceยงfn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
iter_order_by)Iterator with those
of another with respect to the specified comparison function. Read more1.5.0 (const: unstable) ยท Sourceยงfn partial_cmp<I>(self, other: I) -> Option<Ordering> โ
fn partial_cmp<I>(self, other: I) -> Option<Ordering> โ
PartialOrd elements of
this Iterator with those of another. The comparison works like short-circuit
evaluation, returning a result without comparing the remaining elements.
As soon as an order can be determined, the evaluation stops and a result is returned. Read moreSourceยงfn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering> โwhere
Self: Sized,
I: IntoIterator,
F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,
fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering> โwhere
Self: Sized,
I: IntoIterator,
F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,
iter_order_by)Iterator with those
of another with respect to the specified comparison function. Read moreSourceยงfn eq_by<I, F>(self, other: I, eq: F) -> bool
fn eq_by<I, F>(self, other: I, eq: F) -> bool
iter_order_by)1.5.0 (const: unstable) ยท Sourceยงfn lt<I>(self, other: I) -> bool
fn lt<I>(self, other: I) -> bool
Iterator are lexicographically
less than those of another. Read more1.5.0 (const: unstable) ยท Sourceยงfn le<I>(self, other: I) -> bool
fn le<I>(self, other: I) -> bool
Iterator are lexicographically
less or equal to those of another. Read more1.5.0 (const: unstable) ยท Sourceยงfn gt<I>(self, other: I) -> bool
fn gt<I>(self, other: I) -> bool
Iterator are lexicographically
greater than those of another. Read more1.5.0 (const: unstable) ยท Sourceยงfn ge<I>(self, other: I) -> bool
fn ge<I>(self, other: I) -> bool
Iterator are lexicographically
greater than or equal to those of another. Read more1.82.0 (const: unstable) ยท Sourceยงfn is_sorted(self) -> bool
fn is_sorted(self) -> bool
1.82.0 (const: unstable) ยท Sourceยงfn is_sorted_by<F>(self, compare: F) -> bool
fn is_sorted_by<F>(self, compare: F) -> bool
Sourceยงimpl<'a, T> IteratorLending for StridedIter<'a, T>
impl<'a, T> IteratorLending for StridedIter<'a, T>
Sourceยงfn next<'b>(&'b mut self) -> Option<Self::Item<'b>> โ
fn next<'b>(&'b mut self) -> Option<Self::Item<'b>> โ
Sourceยงfn size_hint(&self) -> (usize, Option<usize>) โ
fn size_hint(&self) -> (usize, Option<usize>) โ
Sourceยงfn advance_by(&mut self, n: usize) -> Result<(), usize> โ
fn advance_by(&mut self, n: usize) -> Result<(), usize> โ
n steps. Read moreSourceยงfn nth<'a>(&'a mut self, n: usize) -> Option<Self::Item<'a>> โ
fn nth<'a>(&'a mut self, n: usize) -> Option<Self::Item<'a>> โ
n items and returns the next one.Sourceยงfn is_partitioned<P>(&mut self, pred: P) -> bool
fn is_partitioned<P>(&mut self, pred: P) -> bool
Sourceยงfn try_for_each<F, E>(&mut self, f: F) -> Result<(), E> โ
fn try_for_each<F, E>(&mut self, f: F) -> Result<(), E> โ
f to each remaining item until an error occurs.Sourceยงimpl<'a, T> IteratorLendingDoubleEnded for StridedIter<'a, T>
impl<'a, T> IteratorLendingDoubleEnded for StridedIter<'a, T>
Sourceยงimpl<'a, T> IteratorLendingExactSize for StridedIter<'a, T>
impl<'a, T> IteratorLendingExactSize for StridedIter<'a, T>
Sourceยงimpl<'a, T> IteratorLendingPeek for StridedIter<'a, T>
impl<'a, T> IteratorLendingPeek for StridedIter<'a, T>
Sourceยงfn peek<'b>(&'b mut self) -> Option<Self::Item<'b>> โ
fn peek<'b>(&'b mut self) -> Option<Self::Item<'b>> โ
Sourceยงfn next_if<F>(&mut self, pred: F) -> Option<Self::Item<'_>> โ
fn next_if<F>(&mut self, pred: F) -> Option<Self::Item<'_>> โ
Sourceยงimpl<'a, T> IteratorLendingPeekDoubleEnded for StridedIter<'a, T>
impl<'a, T> IteratorLendingPeekDoubleEnded for StridedIter<'a, T>
Sourceยงfn peek_back<'b>(&'b mut self) -> Option<Self::Item<'b>> โ
fn peek_back<'b>(&'b mut self) -> Option<Self::Item<'b>> โ
Sourceยงfn next_back_if<F>(&mut self, pred: F) -> Option<Self::Item<'_>> โ
fn next_back_if<F>(&mut self, pred: F) -> Option<Self::Item<'_>> โ
Sourceยงimpl<'a, T: Ord> Ord for StridedIter<'a, T>
impl<'a, T: Ord> Ord for StridedIter<'a, T>
Sourceยงfn cmp(&self, other: &StridedIter<'a, T>) -> Ordering
fn cmp(&self, other: &StridedIter<'a, T>) -> Ordering
1.21.0 (const: unstable) ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงimpl<'a, T: PartialEq> PartialEq for StridedIter<'a, T>
impl<'a, T: PartialEq> PartialEq for StridedIter<'a, T>
Sourceยงfn eq(&self, other: &StridedIter<'a, T>) -> bool
fn eq(&self, other: &StridedIter<'a, T>) -> bool
self and other values to be equal, and is used by ==.Sourceยงimpl<'a, T: PartialOrd> PartialOrd for StridedIter<'a, T>
impl<'a, T: PartialOrd> PartialOrd for StridedIter<'a, T>
impl<'a, T> StructuralPartialEq for StridedIter<'a, T>
Auto Trait Implementationsยง
impl<'a, T> Freeze for StridedIter<'a, T>
impl<'a, T> RefUnwindSafe for StridedIter<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for StridedIter<'a, T>where
T: Sync,
impl<'a, T> Sync for StridedIter<'a, T>where
T: Sync,
impl<'a, T> Unpin for StridedIter<'a, T>
impl<'a, T> UnsafeUnpin for StridedIter<'a, T>
impl<'a, T> UnwindSafe for StridedIter<'a, T>where
T: RefUnwindSafe,
Blanket Implementationsยง
Sourceยงimpl<T> AnyExt for T
impl<T> AnyExt for T
Sourceยงfn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
TypeId of Self using a custom hasher.Sourceยงfn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Sourceยงfn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
alloc only.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
Sourceยงimpl<T> ByteSized for T
impl<T> ByteSized for T
Sourceยงconst BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Sourceยงfn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Sourceยงfn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<I> IntoIterator for Iwhere
I: Iterator,
impl<I> IntoIterator for Iwhere
I: Iterator,
Sourceยงimpl<T> MemExt for Twhere
T: ?Sized,
impl<T> MemExt for Twhere
T: ?Sized,
Sourceยงconst NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Sourceยงfn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Sourceยงfn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Sourceยงfn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Sourceยงfn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Sourceยงfn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true if dropping values of this type matters. Read moreSourceยงfn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self without running its destructor. Read moreSourceยงfn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงunsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงunsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงfn mem_as_bytes(&self) -> &[u8] โ
fn mem_as_bytes(&self) -> &[u8] โ
unsafe_slice only.