streaming_iterator

Trait IntoStreamingIterator

Source
pub trait IntoStreamingIterator: IntoIterator
where Self: Sized,
{ // Provided methods fn into_streaming_iter(self) -> Convert<Self::IntoIter> { ... } fn into_streaming_iter_ref<'a, T: ?Sized>( self, ) -> ConvertRef<'a, Self::IntoIter, T> where Self: IntoIterator<Item = &'a T> { ... } fn into_streaming_iter_mut<'a, T: ?Sized>( self, ) -> ConvertMut<'a, Self::IntoIter, T> where Self: IntoIterator<Item = &'a mut T> { ... } }
Expand description

Conversion from IntoIterator to StreamingIterator.

Provided Methods§

Source

fn into_streaming_iter(self) -> Convert<Self::IntoIter>

Turns an IntoIterator into a StreamingIterator.

Calling this method on an IntoIterator is equivalent to using convert.

Source

fn into_streaming_iter_ref<'a, T: ?Sized>( self, ) -> ConvertRef<'a, Self::IntoIter, T>
where Self: IntoIterator<Item = &'a T>,

Turns an IntoIterator of references into a StreamingIterator.

Calling this method on an IntoIterator is equivalent to using convert_ref.

Source

fn into_streaming_iter_mut<'a, T: ?Sized>( self, ) -> ConvertMut<'a, Self::IntoIter, T>
where Self: IntoIterator<Item = &'a mut T>,

Turns an IntoIterator of mutable references into a StreamingIteratorMut.

Calling this method on an IntoIterator is equivalent to using convert_mut.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§