Trait rerun::dataframe::external::re_chunk::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>
impl<'a, I, T> TrustedLen for Copied<I>
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>
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>
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 rerun::external::re_types_core::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