ExactSizeIterator

Trait ExactSizeIterator 

1.55.0 · Source
pub trait ExactSizeIterator: Iterator {
    // Provided methods
    fn len(&self) -> usize { ... }
    fn is_empty(&self) -> bool { ... }
}
Expand description

An iterator that knows its exact length.

Many Iterators don’t know how many times they will iterate, but some do. If an iterator knows how many times it can iterate, providing access to that information can be useful. For example, if you want to iterate backwards, a good start is to know where the end is.

When implementing an ExactSizeIterator, you must also implement Iterator. When doing so, the implementation of Iterator::size_hint must return the exact size of the iterator.

The len method has a default implementation, so you usually shouldn’t implement it. However, you may be able to provide a more performant implementation than the default, so overriding it in this case makes sense.

Note that this trait is a safe trait and as such does not and cannot guarantee that the returned length is correct. This means that unsafe code must not rely on the correctness of Iterator::size_hint. The unstable and unsafe TrustedLen trait gives this additional guarantee.

§When shouldn’t an adapter be ExactSizeIterator?

If an adapter makes an iterator longer, then it’s usually incorrect for that adapter to implement ExactSizeIterator. The inner exact-sized iterator might already be usize::MAX-long, and thus the length of the longer adapted iterator would no longer be exactly representable in usize.

This is why Chain<A, B> isn’t ExactSizeIterator, even when A and B are both ExactSizeIterator.

§Examples

Basic usage:

// a finite range knows exactly how many times it will iterate
let five = 0..5;

assert_eq!(5, five.len());

In the module-level docs, we implemented an Iterator, Counter. Let’s implement ExactSizeIterator for it as well:

impl ExactSizeIterator for Counter {
    // We can easily calculate the remaining number of iterations.
    fn len(&self) -> usize {
        5 - self.count
    }
}

// And now we can use it!

let mut counter = Counter::new();

assert_eq!(5, counter.len());
let _ = counter.next();
assert_eq!(4, counter.len());

Provided Methods§

1.0.0 · Source

fn len(&self) -> usize

Returns the exact remaining length of the iterator.

The implementation ensures that the iterator will return exactly len() more times a Some(T) value, before returning None. This method has a default implementation, so you usually should not implement it directly. However, if you can provide a more efficient implementation, you can do so. See the trait-level docs for an example.

This function has the same safety guarantees as the Iterator::size_hint function.

§Examples

Basic usage:

// a finite range knows exactly how many times it will iterate
let mut range = 0..5;

assert_eq!(5, range.len());
let _ = range.next();
assert_eq!(4, range.len());
Source

fn is_empty(&self) -> bool

🔬This is a nightly-only experimental API. (exact_size_is_empty)

Returns true if the iterator is empty.

This method has a default implementation using ExactSizeIterator::len(), so you don’t need to implement it yourself.

§Examples

Basic usage:

#![feature(exact_size_is_empty)]

let mut one_element = std::iter::once(0);
assert!(!one_element.is_empty());

assert_eq!(one_element.next(), Some(0));
assert!(one_element.is_empty());

assert_eq!(one_element.next(), None);

Implementors§

Source§

impl ExactSizeIterator for rssn::prelude::argmin::seq::index::IndexVecIntoIter

Source§

impl ExactSizeIterator for rssn::prelude::argmin::seq::index::IndexVecIter<'_>

Source§

impl ExactSizeIterator for rssn::prelude::rand::seq::index::IndexVecIntoIter

Source§

impl ExactSizeIterator for U32Digits<'_>

Source§

impl ExactSizeIterator for U64Digits<'_>

1.0.0 · Source§

impl ExactSizeIterator for core::ascii::EscapeDefault

1.20.0 · Source§

impl ExactSizeIterator for EscapeDebug

1.11.0 · Source§

impl ExactSizeIterator for core::char::EscapeDefault

1.11.0 · Source§

impl ExactSizeIterator for EscapeUnicode

1.35.0 · Source§

impl ExactSizeIterator for ToLowercase

1.35.0 · Source§

impl ExactSizeIterator for ToUppercase

1.0.0 · Source§

impl ExactSizeIterator for Range<i8>

1.0.0 · Source§

impl ExactSizeIterator for Range<i16>

1.0.0 · Source§

impl ExactSizeIterator for Range<i32>

1.0.0 · Source§

impl ExactSizeIterator for Range<isize>

1.0.0 · Source§

impl ExactSizeIterator for Range<u8>

1.0.0 · Source§

impl ExactSizeIterator for Range<u16>

1.0.0 · Source§

impl ExactSizeIterator for Range<u32>

1.0.0 · Source§

impl ExactSizeIterator for Range<usize>

1.26.0 · Source§

impl ExactSizeIterator for RangeInclusive<i8>

1.26.0 · Source§

impl ExactSizeIterator for RangeInclusive<i16>

1.26.0 · Source§

impl ExactSizeIterator for RangeInclusive<u8>

1.26.0 · Source§

impl ExactSizeIterator for RangeInclusive<u16>

Source§

impl ExactSizeIterator for IterRange<i8>

Source§

impl ExactSizeIterator for IterRange<i16>

Source§

impl ExactSizeIterator for IterRange<isize>

Source§

impl ExactSizeIterator for IterRange<u8>

Source§

impl ExactSizeIterator for IterRange<u16>

Source§

impl ExactSizeIterator for IterRange<usize>

Source§

impl ExactSizeIterator for IterRangeInclusive<i8>

Source§

impl ExactSizeIterator for IterRangeInclusive<u8>

1.0.0 · Source§

impl ExactSizeIterator for Bytes<'_>

1.0.0 · Source§

impl ExactSizeIterator for Args

1.0.0 · Source§

impl ExactSizeIterator for ArgsOs

Source§

impl ExactSizeIterator for TLFieldsIterator

Source§

impl ExactSizeIterator for TLFunctionIter

Source§

impl ExactSizeIterator for Chain<'_>

Source§

impl ExactSizeIterator for NaiveDateDaysIterator

Source§

impl ExactSizeIterator for NaiveDateWeeksIterator

Source§

impl ExactSizeIterator for serde_json::map::IntoIter

Source§

impl ExactSizeIterator for serde_json::map::IntoValues

Source§

impl<'a> ExactSizeIterator for rssn::prelude::rand::seq::index::IndexVecIter<'a>

1.57.0 · Source§

impl<'a> ExactSizeIterator for CommandArgs<'a>

1.57.0 · Source§

impl<'a> ExactSizeIterator for CommandEnvs<'a>

Source§

impl<'a> ExactSizeIterator for MTLIterator<'a>

Source§

impl<'a> ExactSizeIterator for serde_json::map::Iter<'a>

Source§

impl<'a> ExactSizeIterator for serde_json::map::IterMut<'a>

Source§

impl<'a> ExactSizeIterator for serde_json::map::Keys<'a>

Source§

impl<'a> ExactSizeIterator for serde_json::map::Values<'a>

Source§

impl<'a> ExactSizeIterator for serde_json::map::ValuesMut<'a>

Source§

impl<'a, A, D> ExactSizeIterator for AxisChunksIter<'a, A, D>
where D: Dimension,

Source§

impl<'a, A, D> ExactSizeIterator for AxisChunksIterMut<'a, A, D>
where D: Dimension,

Source§

impl<'a, A, D> ExactSizeIterator for AxisIter<'a, A, D>
where D: Dimension,

Source§

impl<'a, A, D> ExactSizeIterator for AxisIterMut<'a, A, D>
where D: Dimension,

Source§

impl<'a, A, D> ExactSizeIterator for IndexedIter<'a, A, D>
where D: Dimension,

Source§

impl<'a, A, D> ExactSizeIterator for IndexedIterMut<'a, A, D>
where D: Dimension,

Source§

impl<'a, A, D> ExactSizeIterator for rssn::prelude::ndarray::iter::Iter<'a, A, D>
where D: Dimension,

Source§

impl<'a, A, D> ExactSizeIterator for rssn::prelude::ndarray::iter::IterMut<'a, A, D>
where D: Dimension,

Source§

impl<'a, A, D> ExactSizeIterator for LanesIter<'a, A, D>
where D: Dimension,

Source§

impl<'a, A, D> ExactSizeIterator for LanesIterMut<'a, A, D>
where D: Dimension,

1.1.0 · Source§

impl<'a, I, T> ExactSizeIterator for Cloned<I>
where T: 'a + Clone, I: ExactSizeIterator<Item = &'a T>,

1.36.0 · Source§

impl<'a, I, T> ExactSizeIterator for Copied<I>
where T: 'a + Copy, I: ExactSizeIterator<Item = &'a T>,

Source§

impl<'a, K> ExactSizeIterator for hashbrown::set::Iter<'a, K>

Source§

impl<'a, P> ExactSizeIterator for EnumeratePixels<'a, P>
where P: Pixel + 'a, <P as Pixel>::Subpixel: 'a,

Source§

impl<'a, P> ExactSizeIterator for EnumeratePixelsMut<'a, P>
where P: Pixel + 'a, <P as Pixel>::Subpixel: 'a,

Source§

impl<'a, P> ExactSizeIterator for EnumerateRows<'a, P>
where P: Pixel + 'a, <P as Pixel>::Subpixel: 'a,

Source§

impl<'a, P> ExactSizeIterator for EnumerateRowsMut<'a, P>
where P: Pixel + 'a, <P as Pixel>::Subpixel: 'a,

Source§

impl<'a, P> ExactSizeIterator for Pixels<'a, P>
where P: Pixel + 'a, <P as Pixel>::Subpixel: 'a,

Source§

impl<'a, P> ExactSizeIterator for PixelsMut<'a, P>
where P: Pixel + 'a, <P as Pixel>::Subpixel: 'a,

Source§

impl<'a, P> ExactSizeIterator for Rows<'a, P>
where P: Pixel + 'a, <P as Pixel>::Subpixel: 'a,

Source§

impl<'a, P> ExactSizeIterator for RowsMut<'a, P>
where P: Pixel + 'a, <P as Pixel>::Subpixel: 'a,

Source§

impl<'a, S, T> ExactSizeIterator for rssn::prelude::argmin::seq::SliceChooseIter<'a, S, T>
where S: Index<usize, Output = T> + 'a + ?Sized, T: 'a,

Available on crate feature alloc only.
Source§

impl<'a, S, T> ExactSizeIterator for rssn::prelude::rand::seq::SliceChooseIter<'a, S, T>
where S: Index<usize, Output = T> + 'a + ?Sized, T: 'a,

Available on crate feature alloc only.
1.31.0 · Source§

impl<'a, T> ExactSizeIterator for RChunksExact<'a, T>

Source§

impl<'a, T> ExactSizeIterator for generational_arena::Drain<'a, T>

Source§

impl<'a, T> ExactSizeIterator for generational_arena::Iter<'a, T>

Source§

impl<'a, T> ExactSizeIterator for generational_arena::IterMut<'a, T>

Source§

impl<'a, T> ExactSizeIterator for smallvec::Drain<'a, T>
where T: Array,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for rssn::prelude::nalgebra::base::iter::ColumnIter<'a, T, R, C, S>
where T: Scalar, R: Dim, C: Dim, S: 'a + RawStorage<T, R, C>,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for rssn::prelude::nalgebra::base::iter::ColumnIterMut<'a, T, R, C, S>
where T: Scalar, R: Dim, C: Dim, S: 'a + RawStorageMut<T, R, C>,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for rssn::prelude::nalgebra::base::iter::MatrixIter<'a, T, R, C, S>
where R: Dim, C: Dim, S: 'a + RawStorage<T, R, C>,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for rssn::prelude::nalgebra::base::iter::MatrixIterMut<'a, T, R, C, S>
where R: Dim, C: Dim, S: 'a + RawStorageMut<T, R, C>,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for rssn::prelude::nalgebra::base::iter::RowIter<'a, T, R, C, S>
where T: Scalar, R: Dim, C: Dim, S: 'a + RawStorage<T, R, C>,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for rssn::prelude::nalgebra::base::iter::RowIterMut<'a, T, R, C, S>
where T: Scalar, R: Dim, C: Dim, S: 'a + RawStorageMut<T, R, C>,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for nalgebra::base::iter::ColumnIter<'a, T, R, C, S>
where T: Scalar, R: Dim, C: Dim, S: 'a + RawStorage<T, R, C>,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for nalgebra::base::iter::ColumnIterMut<'a, T, R, C, S>
where T: Scalar, R: Dim, C: Dim, S: 'a + RawStorageMut<T, R, C>,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for nalgebra::base::iter::MatrixIter<'a, T, R, C, S>
where R: Dim, C: Dim, S: 'a + RawStorage<T, R, C>,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for nalgebra::base::iter::MatrixIterMut<'a, T, R, C, S>
where R: Dim, C: Dim, S: 'a + RawStorageMut<T, R, C>,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for nalgebra::base::iter::RowIter<'a, T, R, C, S>
where T: Scalar, R: Dim, C: Dim, S: 'a + RawStorage<T, R, C>,

Source§

impl<'a, T, R, C, S> ExactSizeIterator for nalgebra::base::iter::RowIterMut<'a, T, R, C, S>
where T: Scalar, R: Dim, C: Dim, S: 'a + RawStorageMut<T, R, C>,

1.82.0 · Source§

impl<A> ExactSizeIterator for core::iter::sources::repeat_n::RepeatN<A>
where A: Clone,

1.0.0 · Source§

impl<A> ExactSizeIterator for core::option::IntoIter<A>

1.0.0 · Source§

impl<A> ExactSizeIterator for core::option::Iter<'_, A>

1.0.0 · Source§

impl<A> ExactSizeIterator for core::option::IterMut<'_, A>

Source§

impl<A> ExactSizeIterator for itertools::repeatn::RepeatN<A>
where A: Clone,

Source§

impl<A> ExactSizeIterator for itertools::ziptuple::Zip<(A,)>

Source§

impl<A> ExactSizeIterator for smallvec::IntoIter<A>
where A: Array,

1.0.0 · Source§

impl<A, B> ExactSizeIterator for core::iter::adapters::zip::Zip<A, B>

Source§

impl<A, B> ExactSizeIterator for itertools::ziptuple::Zip<(A, B)>

Source§

impl<A, B, C> ExactSizeIterator for itertools::ziptuple::Zip<(A, B, C)>

Source§

impl<A, B, C, D> ExactSizeIterator for itertools::ziptuple::Zip<(A, B, C, D)>

Source§

impl<A, B, C, D, E> ExactSizeIterator for itertools::ziptuple::Zip<(A, B, C, D, E)>

Source§

impl<A, B, C, D, E, F> ExactSizeIterator for itertools::ziptuple::Zip<(A, B, C, D, E, F)>

Source§

impl<A, B, C, D, E, F, G> ExactSizeIterator for itertools::ziptuple::Zip<(A, B, C, D, E, F, G)>

Source§

impl<A, B, C, D, E, F, G, H> ExactSizeIterator for itertools::ziptuple::Zip<(A, B, C, D, E, F, G, H)>

Source§

impl<A, B, C, D, E, F, G, H, I> ExactSizeIterator for itertools::ziptuple::Zip<(A, B, C, D, E, F, G, H, I)>

Source§

impl<A, B, C, D, E, F, G, H, I, J> ExactSizeIterator for itertools::ziptuple::Zip<(A, B, C, D, E, F, G, H, I, J)>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> ExactSizeIterator for itertools::ziptuple::Zip<(A, B, C, D, E, F, G, H, I, J, K)>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> ExactSizeIterator for itertools::ziptuple::Zip<(A, B, C, D, E, F, G, H, I, J, K, L)>

Source§

impl<A, D> ExactSizeIterator for rssn::prelude::ndarray::iter::IntoIter<A, D>
where D: Dimension,

1.43.0 · Source§

impl<A, F> ExactSizeIterator for OnceWith<F>
where F: FnOnce() -> A,

1.0.0 · Source§

impl<B, I, F> ExactSizeIterator for Map<I, F>
where I: ExactSizeIterator, F: FnMut(<I as Iterator>::Item) -> B,

Source§

impl<D> ExactSizeIterator for IndicesIter<D>
where D: Dimension,

Source§

impl<E> ExactSizeIterator for BitArray64Iter<E>
where E: BooleanEnum,

Source§

impl<F> ExactSizeIterator for Linspace<F>
where Linspace<F>: Iterator,

Source§

impl<F> ExactSizeIterator for Logspace<F>
where Logspace<F>: Iterator,

1.82.0 · Source§

impl<F, A> ExactSizeIterator for Take<RepeatWith<F>>
where F: FnMut() -> A,

Source§

impl<F, T> ExactSizeIterator for LazyOnce<F>
where F: FnOnce() -> T,

1.0.0 · Source§

impl<I> ExactSizeIterator for &mut I

1.0.0 · Source§

impl<I> ExactSizeIterator for Enumerate<I>

1.0.0 · Source§

impl<I> ExactSizeIterator for Fuse<I>

1.0.0 · Source§

impl<I> ExactSizeIterator for Peekable<I>

1.0.0 · Source§

impl<I> ExactSizeIterator for Rev<I>

1.0.0 · Source§

impl<I> ExactSizeIterator for Skip<I>

1.28.0 · Source§

impl<I> ExactSizeIterator for StepBy<I>

1.0.0 · Source§

impl<I> ExactSizeIterator for Take<I>

Source§

impl<I> ExactSizeIterator for RBox<I>

Source§

impl<I> ExactSizeIterator for ExactlyOneError<I>

Source§

impl<I> ExactSizeIterator for MultiPeek<I>

Source§

impl<I> ExactSizeIterator for PeekNth<I>

Source§

impl<I> ExactSizeIterator for Tee<I>
where I: ExactSizeIterator, <I as Iterator>::Item: Clone,

Source§

impl<I> ExactSizeIterator for WithPosition<I>

1.0.0 · Source§

impl<I, A> ExactSizeIterator for Box<I, A>

1.21.0 · Source§

impl<I, A> ExactSizeIterator for alloc::vec::splice::Splice<'_, I, A>
where I: Iterator, A: Allocator,

1.0.0 · Source§

impl<I, F> ExactSizeIterator for Inspect<I, F>
where I: ExactSizeIterator, F: FnMut(&<I as Iterator>::Item),

Source§

impl<I, F> ExactSizeIterator for Update<I, F>
where I: ExactSizeIterator, F: FnMut(&mut <I as Iterator>::Item),

Source§

impl<I, F> ExactSizeIterator for PadUsing<I, F>
where I: ExactSizeIterator, F: FnMut(usize) -> <I as Iterator>::Item,

Source§

impl<I, F, R, const N: usize> ExactSizeIterator for MapWindows<I, F, N>
where I: ExactSizeIterator, F: FnMut(&[<I as Iterator>::Item; N]) -> R,

Source§

impl<I, J> ExactSizeIterator for ZipEq<I, J>

Source§

impl<I, K, V, S> ExactSizeIterator for indexmap::map::iter::Splice<'_, I, K, V, S>
where I: Iterator<Item = (K, V)>, K: Hash + Eq, S: BuildHasher,

Source§

impl<I, T> ExactSizeIterator for CircularTupleWindows<I, T>
where I: Iterator<Item = <T as TupleCollect>::Item> + Clone, T: TupleCollect + Clone, <T as TupleCollect>::Item: Clone,

Source§

impl<I, T> ExactSizeIterator for TupleWindows<I, T>
where I: ExactSizeIterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple + Clone, <T as TupleCollect>::Item: Clone,

Source§

impl<I, T> ExactSizeIterator for Tuples<I, T>
where I: ExactSizeIterator<Item = <T as TupleCollect>::Item>, T: HomogeneousTuple,

Source§

impl<I, T, S> ExactSizeIterator for indexmap::set::iter::Splice<'_, I, T, S>
where I: Iterator<Item = T>, T: Hash + Eq, S: BuildHasher,

Source§

impl<I, const N: usize> ExactSizeIterator for ArrayChunks<I, N>

1.0.0 · Source§

impl<K> ExactSizeIterator for std::collections::hash::set::Drain<'_, K>

1.0.0 · Source§

impl<K> ExactSizeIterator for std::collections::hash::set::IntoIter<K>

1.0.0 · Source§

impl<K> ExactSizeIterator for std::collections::hash::set::Iter<'_, K>

Source§

impl<K> ExactSizeIterator for hashbrown::set::Iter<'_, K>

Source§

impl<K, A> ExactSizeIterator for hashbrown::set::Drain<'_, K, A>
where A: Allocator,

Source§

impl<K, A> ExactSizeIterator for hashbrown::set::Drain<'_, K, A>
where A: Allocator,

Source§

impl<K, A> ExactSizeIterator for hashbrown::set::IntoIter<K, A>
where A: Allocator,

Source§

impl<K, A> ExactSizeIterator for hashbrown::set::IntoIter<K, A>
where A: Allocator,

1.0.0 · Source§

impl<K, V> ExactSizeIterator for alloc::collections::btree::map::Iter<'_, K, V>

1.0.0 · Source§

impl<K, V> ExactSizeIterator for alloc::collections::btree::map::IterMut<'_, K, V>

1.0.0 · Source§

impl<K, V> ExactSizeIterator for alloc::collections::btree::map::Keys<'_, K, V>

1.0.0 · Source§

impl<K, V> ExactSizeIterator for alloc::collections::btree::map::Values<'_, K, V>

1.10.0 · Source§

impl<K, V> ExactSizeIterator for alloc::collections::btree::map::ValuesMut<'_, K, V>

1.6.0 · Source§

impl<K, V> ExactSizeIterator for std::collections::hash::map::Drain<'_, K, V>

1.0.0 · Source§

impl<K, V> ExactSizeIterator for std::collections::hash::map::IntoIter<K, V>

1.54.0 · Source§

impl<K, V> ExactSizeIterator for std::collections::hash::map::IntoKeys<K, V>

1.54.0 · Source§

impl<K, V> ExactSizeIterator for std::collections::hash::map::IntoValues<K, V>

1.0.0 · Source§

impl<K, V> ExactSizeIterator for std::collections::hash::map::Iter<'_, K, V>

1.0.0 · Source§

impl<K, V> ExactSizeIterator for std::collections::hash::map::IterMut<'_, K, V>

1.0.0 · Source§

impl<K, V> ExactSizeIterator for std::collections::hash::map::Keys<'_, K, V>

1.0.0 · Source§

impl<K, V> ExactSizeIterator for std::collections::hash::map::Values<'_, K, V>

1.10.0 · Source§

impl<K, V> ExactSizeIterator for std::collections::hash::map::ValuesMut<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for hashbrown::map::Iter<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for hashbrown::map::Iter<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for hashbrown::map::IterMut<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for hashbrown::map::IterMut<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for hashbrown::map::Keys<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for hashbrown::map::Keys<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for hashbrown::map::Values<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for hashbrown::map::Values<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for hashbrown::map::ValuesMut<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for hashbrown::map::ValuesMut<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for indexmap::map::iter::Drain<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for indexmap::map::iter::IntoIter<K, V>

Source§

impl<K, V> ExactSizeIterator for indexmap::map::iter::IntoKeys<K, V>

Source§

impl<K, V> ExactSizeIterator for indexmap::map::iter::IntoValues<K, V>

Source§

impl<K, V> ExactSizeIterator for indexmap::map::iter::Iter<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for IterMut2<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for indexmap::map::iter::IterMut<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for indexmap::map::iter::Keys<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for indexmap::map::iter::Values<'_, K, V>

Source§

impl<K, V> ExactSizeIterator for indexmap::map::iter::ValuesMut<'_, K, V>

1.0.0 · Source§

impl<K, V, A> ExactSizeIterator for alloc::collections::btree::map::IntoIter<K, V, A>
where A: Allocator + Clone,

1.54.0 · Source§

impl<K, V, A> ExactSizeIterator for alloc::collections::btree::map::IntoKeys<K, V, A>
where A: Allocator + Clone,

1.54.0 · Source§

impl<K, V, A> ExactSizeIterator for alloc::collections::btree::map::IntoValues<K, V, A>
where A: Allocator + Clone,

Source§

impl<K, V, A> ExactSizeIterator for hashbrown::map::Drain<'_, K, V, A>
where A: Allocator,

Source§

impl<K, V, A> ExactSizeIterator for hashbrown::map::Drain<'_, K, V, A>
where A: Allocator,

Source§

impl<K, V, A> ExactSizeIterator for hashbrown::map::IntoIter<K, V, A>
where A: Allocator,

Source§

impl<K, V, A> ExactSizeIterator for hashbrown::map::IntoIter<K, V, A>
where A: Allocator,

Source§

impl<K, V, A> ExactSizeIterator for hashbrown::map::IntoKeys<K, V, A>
where A: Allocator,

Source§

impl<K, V, A> ExactSizeIterator for hashbrown::map::IntoKeys<K, V, A>
where A: Allocator,

Source§

impl<K, V, A> ExactSizeIterator for hashbrown::map::IntoValues<K, V, A>
where A: Allocator,

Source§

impl<K, V, A> ExactSizeIterator for hashbrown::map::IntoValues<K, V, A>
where A: Allocator,

Source§

impl<L, R> ExactSizeIterator for Either<L, R>
where L: ExactSizeIterator, R: ExactSizeIterator<Item = <L as Iterator>::Item>,

Source§

impl<L, R> ExactSizeIterator for IterEither<L, R>

Source§

impl<R> ExactSizeIterator for FlatPairs<'_, R>
where R: RuleType,

Source§

impl<R> ExactSizeIterator for Pairs<'_, R>
where R: RuleType,

Source§

impl<R> ExactSizeIterator for Tokens<'_, R>
where R: RuleType,

1.0.0 · Source§

impl<T> ExactSizeIterator for alloc::collections::binary_heap::Iter<'_, T>

1.0.0 · Source§

impl<T> ExactSizeIterator for alloc::collections::btree::set::Iter<'_, T>

1.0.0 · Source§

impl<T> ExactSizeIterator for alloc::collections::linked_list::Iter<'_, T>

1.0.0 · Source§

impl<T> ExactSizeIterator for alloc::collections::linked_list::IterMut<'_, T>

1.0.0 · Source§

impl<T> ExactSizeIterator for alloc::collections::vec_deque::iter::Iter<'_, T>

1.0.0 · Source§

impl<T> ExactSizeIterator for alloc::collections::vec_deque::iter_mut::IterMut<'_, T>

1.82.0 · Source§

impl<T> ExactSizeIterator for Take<Repeat<T>>
where T: Clone,

1.2.0 · Source§

impl<T> ExactSizeIterator for Empty<T>

1.2.0 · Source§

impl<T> ExactSizeIterator for Once<T>

1.0.0 · Source§

impl<T> ExactSizeIterator for core::result::IntoIter<T>

1.0.0 · Source§

impl<T> ExactSizeIterator for core::result::Iter<'_, T>

1.0.0 · Source§

impl<T> ExactSizeIterator for core::result::IterMut<'_, T>

1.0.0 · Source§

impl<T> ExactSizeIterator for Chunks<'_, T>

1.31.0 · Source§

impl<T> ExactSizeIterator for ChunksExact<'_, T>

1.31.0 · Source§

impl<T> ExactSizeIterator for ChunksExactMut<'_, T>

1.0.0 · Source§

impl<T> ExactSizeIterator for ChunksMut<'_, T>

1.0.0 · Source§

impl<T> ExactSizeIterator for core::slice::iter::Iter<'_, T>

1.0.0 · Source§

impl<T> ExactSizeIterator for core::slice::iter::IterMut<'_, T>

1.31.0 · Source§

impl<T> ExactSizeIterator for RChunks<'_, T>

1.31.0 · Source§

impl<T> ExactSizeIterator for RChunksExactMut<'_, T>

1.31.0 · Source§

impl<T> ExactSizeIterator for RChunksMut<'_, T>

1.0.0 · Source§

impl<T> ExactSizeIterator for Windows<'_, T>

Source§

impl<T> ExactSizeIterator for generational_arena::IntoIter<T>

Source§

impl<T> ExactSizeIterator for RawIter<T>

Source§

impl<T> ExactSizeIterator for hashbrown::table::Iter<'_, T>

Source§

impl<T> ExactSizeIterator for hashbrown::table::Iter<'_, T>

Source§

impl<T> ExactSizeIterator for IterBuckets<'_, T>

Source§

impl<T> ExactSizeIterator for hashbrown::table::IterMut<'_, T>

Source§

impl<T> ExactSizeIterator for hashbrown::table::IterMut<'_, T>

Source§

impl<T> ExactSizeIterator for indexmap::set::iter::Drain<'_, T>

Source§

impl<T> ExactSizeIterator for indexmap::set::iter::IntoIter<T>

Source§

impl<T> ExactSizeIterator for indexmap::set::iter::Iter<'_, T>

Source§

impl<T> ExactSizeIterator for TupleBuffer<T>

1.6.0 · Source§

impl<T, A> ExactSizeIterator for alloc::collections::binary_heap::Drain<'_, T, A>
where A: Allocator,

Source§

impl<T, A> ExactSizeIterator for DrainSorted<'_, T, A>
where T: Ord, A: Allocator,

1.0.0 · Source§

impl<T, A> ExactSizeIterator for alloc::collections::binary_heap::IntoIter<T, A>
where A: Allocator,

Source§

impl<T, A> ExactSizeIterator for IntoIterSorted<T, A>
where T: Ord, A: Allocator,

1.0.0 · Source§

impl<T, A> ExactSizeIterator for alloc::collections::btree::set::IntoIter<T, A>
where A: Allocator + Clone,

1.0.0 · Source§

impl<T, A> ExactSizeIterator for alloc::collections::linked_list::IntoIter<T, A>
where A: Allocator,

1.6.0 · Source§

impl<T, A> ExactSizeIterator for alloc::collections::vec_deque::drain::Drain<'_, T, A>
where A: Allocator,

1.0.0 · Source§

impl<T, A> ExactSizeIterator for alloc::collections::vec_deque::into_iter::IntoIter<T, A>
where A: Allocator,

1.6.0 · Source§

impl<T, A> ExactSizeIterator for alloc::vec::drain::Drain<'_, T, A>
where A: Allocator,

1.0.0 · Source§

impl<T, A> ExactSizeIterator for alloc::vec::into_iter::IntoIter<T, A>
where A: Allocator,

Source§

impl<T, A> ExactSizeIterator for RawDrain<'_, T, A>
where A: Allocator,

Source§

impl<T, A> ExactSizeIterator for RawIntoIter<T, A>
where A: Allocator,

Source§

impl<T, A> ExactSizeIterator for hashbrown::table::Drain<'_, T, A>
where A: Allocator,

Source§

impl<T, A> ExactSizeIterator for hashbrown::table::Drain<'_, T, A>
where A: Allocator,

Source§

impl<T, A> ExactSizeIterator for hashbrown::table::IntoIter<T, A>
where A: Allocator,

Source§

impl<T, A> ExactSizeIterator for hashbrown::table::IntoIter<T, A>
where A: Allocator,

Source§

impl<T, U> ExactSizeIterator for ZipLongest<T, U>

1.40.0 · Source§

impl<T, const N: usize> ExactSizeIterator for core::array::iter::IntoIter<T, N>

Source§

impl<T, const N: usize> ExactSizeIterator for ArrayWindows<'_, T, N>