polars_arrow::trusted_len

Trait 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 FastU32BitmapIter<'_>

Source§

impl TrustedLen for FastU56BitmapIter<'_>

Source§

impl TrustedLen for FastU64BitmapIter<'_>

Source§

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

Source§

impl TrustedLen for TrueIdxIter<'_>

Source§

impl TrustedLen for BitmapIter<'_>

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>