Trait arrow2::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.
Implementations on Foreign Types§
impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F>
impl<A, B> TrustedLen for Zip<A, B>where A: TrustedLen, B: TrustedLen,
impl<T> TrustedLen for IntoIter<T>
impl<A: TrustedLen> TrustedLen for Take<A>
impl<I> TrustedLen for Enumerate<I>where I: TrustedLen,
impl<T> TrustedLen for Once<T>
impl<T> TrustedLen for Windows<'_, T>
impl<T> TrustedLen for ChunksExact<'_, T>
impl<A, B> TrustedLen for Chain<A, B>where A: TrustedLen, B: TrustedLen<Item = A::Item>,
impl<'a, I, T> TrustedLen for Cloned<I>where I: TrustedLen<Item = &'a T>, T: Clone + 'a,
impl<A: Clone> TrustedLen for Repeat<A>
impl<'a, I, T> TrustedLen for Copied<I>where I: TrustedLen<Item = &'a T>, T: Copy + 'a,
impl<B, I: TrustedLen, T: FnMut(I::Item) -> B> TrustedLen for Map<I, T>
impl<T> TrustedLen for Iter<'_, T>
Implementors§
impl TrustedLen for arrow2::bitmap::IntoIter
impl TrustedLen for BitmapIter<'_>
impl<'a> TrustedLen for RowsIter<'a>
Available on crate feature
compute_sort
only.impl<'a, A: ArrayAccessor<'a>> TrustedLen for ArrayValuesIter<'a, A>
impl<I: Index> TrustedLen for IndexRange<I>
Safety: a range is always of known length