sophia_api::source

Trait IntoTripleSource

Source
pub trait IntoTripleSource: Iterator + Sized {
    // Provided method
    fn into_triple_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 TripleSource.

Provided Methods§

Source

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

Convert this iterator into an Infallible TripleSource.

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> IntoTripleSource for I
where I: Iterator, I::Item: Triple,