sophia_api::graph

Trait CollectibleGraph

Source
pub trait CollectibleGraph: Graph + Sized {
    // Required method
    fn from_triple_source<TS: TripleSource>(
        triples: TS,
    ) -> StreamResult<Self, TS::Error, Self::Error>;
}
Expand description

A Graph that can be constructed from a TripleSource

Required Methods§

Source

fn from_triple_source<TS: TripleSource>( triples: TS, ) -> StreamResult<Self, TS::Error, Self::Error>

Construct a graph from the given 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.

Implementations on Foreign Types§

Source§

impl<T> CollectibleGraph for BTreeSet<[T; 3]>
where T: Term + FromTerm + Ord,

Source§

fn from_triple_source<TS: TripleSource>( triples: TS, ) -> StreamResult<Self, TS::Error, Self::Error>

Source§

impl<T> CollectibleGraph for Vec<[T; 3]>
where T: Term + FromTerm,

Source§

fn from_triple_source<TS: TripleSource>( triples: TS, ) -> StreamResult<Self, TS::Error, Self::Error>

Source§

impl<T, S> CollectibleGraph for HashSet<[T; 3], S>
where T: Term + Eq + FromTerm + Hash, S: BuildHasher + Default,

Source§

fn from_triple_source<TS: TripleSource>( triples: TS, ) -> StreamResult<Self, TS::Error, Self::Error>

Implementors§