pub trait IntoSource: Iterator + Sized {
// Provided method
fn into_source(
self,
) -> Map<Self, fn(<Self as Iterator>::Item) -> Result<<Self as Iterator>::Item, Infallible>> { ... }
}Expand description
An extension trait for iterators,
converting them to an Infallible Source.
Provided Methods§
Sourcefn into_source(
self,
) -> Map<Self, fn(<Self as Iterator>::Item) -> Result<<Self as Iterator>::Item, Infallible>>
fn into_source( self, ) -> Map<Self, fn(<Self as Iterator>::Item) -> Result<<Self as Iterator>::Item, Infallible>>
Convert this iterator into an Infallible Source.
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.