Trait polars_arrow::trusted_len::TrustedLen

source ·
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.

Trait Implementations§

source§

impl<T> TrustedLen for &mut dyn TrustedLen<Item = T>

source§

impl<T> TrustedLen for Box<dyn TrustedLen<Item = T> + '_>

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<A: TrustedLen> TrustedLen for StepBy<A>

source§

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

source§

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

source§

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

source§

impl<I, St, F, B> TrustedLen for Scan<I, St, F>
where F: FnMut(&mut St, I::Item) -> Option<B>, I: TrustedLen,

source§

impl<I: TrustedLen + DoubleEndedIterator> TrustedLen for Rev<I>

source§

impl<K, V> TrustedLen for IntoIter<K, V>

source§

impl<T> TrustedLen for Box<dyn TrustedLen<Item = T> + '_>

source§

impl<T> TrustedLen for IntoIter<T>

source§

impl<T> TrustedLen for Once<T>

source§

impl<T> TrustedLen for Range<T>
where Range<T>: Iterator,

source§

impl<T> TrustedLen for RangeInclusive<T>

source§

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

source§

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

source§

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

Implementors§

source§

impl TrustedLen for polars_arrow::bitmap::iterator::IntoIter

source§

impl TrustedLen for BitmapIter<'_>

source§

impl<'a> TrustedLen for FastU32BitmapIter<'a>

source§

impl<'a> TrustedLen for FastU56BitmapIter<'a>

source§

impl<'a> TrustedLen for FastU64BitmapIter<'a>

source§

impl<'a> TrustedLen for TrueIdxIter<'a>

source§

impl<'a, A: ArrayAccessor<'a> + ?Sized> TrustedLen for NonNullValuesIter<'a, A>

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<I: Iterator<Item = J>, J> TrustedLen for TrustMyLength<I, J>

source§

impl<T> TrustedLen for &mut dyn TrustedLen<Item = T>

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>