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

Object Safety§

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§