sophia_api::source

Trait IntoQuadSource

Source
pub trait IntoQuadSource: Iterator + Sized {
    // Provided method
    fn into_quad_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 QuadSource.

Provided Methods§

Source

fn into_quad_source( self, ) -> Map<Self, fn(_: <Self as Iterator>::Item) -> Result<<Self as Iterator>::Item, Infallible>>

Convert this iterator into an Infallible QuadSource.

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§

Source§

impl<I> IntoQuadSource for I
where I: Iterator, I::Item: Quad,