pub unsafe trait TrustedLen: Iterator { }
Expand description

An iterator of known, fixed size. A trait denoting Rusts’ unstable TrustedLen. This is re-defined here and implemented for some iterators until std::iter::TrustedLen is stabilized.

Safety

This trait must only be implemented when the contract is upheld. Consumers of this trait must inspect Iterator::size_hint()’s upper bound.

Implementations on Foreign Types§

source§

impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F>

source§

impl<A, B> TrustedLen for Zip<A, B>where A: TrustedLen, B: TrustedLen,

source§

impl<T> TrustedLen for IntoIter<T>

source§

impl<A: TrustedLen> TrustedLen for Take<A>

source§

impl<I> TrustedLen for Enumerate<I>where I: TrustedLen,

source§

impl<T> TrustedLen for Once<T>

source§

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

source§

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

source§

impl<A, B> TrustedLen for Chain<A, B>where A: TrustedLen, B: TrustedLen<Item = A::Item>,

source§

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

source§

impl<A: Clone> TrustedLen for Repeat<A>

source§

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

source§

impl<B, I: TrustedLen, T: FnMut(I::Item) -> B> TrustedLen for Map<I, T>

source§

impl<T> TrustedLen for Iter<'_, T>

Implementors§

source§

impl TrustedLen for arrow2::bitmap::IntoIter

source§

impl TrustedLen for BitmapIter<'_>

source§

impl<'a> TrustedLen for RowsIter<'a>

Available on crate feature compute_sort only.
source§

impl<'a, A: ArrayAccessor<'a>> TrustedLen for ArrayValuesIter<'a, A>

source§

impl<I: Index> TrustedLen for IndexRange<I>

Safety: a range is always of known length

source§

impl<T, I, V> TrustedLen for ZipValidity<T, I, V>where I: TrustedLen<Item = T>, V: TrustedLen<Item = bool>,

source§

impl<T, I, V> TrustedLen for ZipValidityIter<T, I, V>where I: TrustedLen<Item = T>, V: TrustedLen<Item = bool>,

source§

impl<T: BitChunk> TrustedLen for BitChunks<'_, T>

source§

impl<T: BitChunk> TrustedLen for BitChunksExact<'_, T>

source§

impl<T: BitChunk> TrustedLen for BitChunkIter<T>

source§

impl<T: BitChunk> TrustedLen for BitChunkOnes<T>