Trait re_sdk::external::arrow2::trusted_len::TrustedLen

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§

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<T> TrustedLen for IntoIter<T>

§

impl<T> TrustedLen for Once<T>

§

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

§

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

§

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

Implementors§

§

impl TrustedLen for re_sdk::external::arrow2::bitmap::IntoIter

§

impl TrustedLen for BitmapIter<'_>

§

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

§

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

Safety: a range is always of known length

§

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

§

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

§

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

§

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

§

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

§

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