[][src]Trait grdf::SizedGraph

pub trait SizedGraph<T = Term>: Graph<T> + Sized {
    type IntoTriples: Iterator<Item = Triple<T>>;
    type IntoSubjects: Iterator<Item = (T, Self::IntoPredicates)>;
    type IntoPredicates: Iterator<Item = (T, Self::IntoObjects)>;
    type IntoObjects: Iterator<Item = T>;
    fn into_triples(self) -> Self::IntoTriples;
fn into_subjects(self) -> Self::IntoSubjects;
fn into_predicates(self, subject: &T) -> Self::IntoPredicates;
fn into_objects(self, subject: &T, predicate: &T) -> Self::IntoObjects; }

Sized gRDF graph that can be converted into iterators.

Defines a set of iterators the graph can be consumed into.

Associated Types

type IntoTriples: Iterator<Item = Triple<T>>

Consuming triples iterator.

type IntoSubjects: Iterator<Item = (T, Self::IntoPredicates)>

Consuming subjects iterator.

type IntoPredicates: Iterator<Item = (T, Self::IntoObjects)>

Consuming predicates iterator.

type IntoObjects: Iterator<Item = T>

Consuming objects iterator.

Loading content...

Required methods

fn into_triples(self) -> Self::IntoTriples

Consumes the graph and returns an iterator over its triples.

fn into_subjects(self) -> Self::IntoSubjects

Consumes the graph and returns an iterator over its subjects.

fn into_predicates(self, subject: &T) -> Self::IntoPredicates

Consumes the graph and returns an iterator over the predicates of the given subject.

fn into_objects(self, subject: &T, predicate: &T) -> Self::IntoObjects

Consumes the graph and returns an iterator over the objects of the given subject and predicate.

Loading content...

Implementors

impl<T: Clone + Hash + Eq> SizedGraph<T> for HashGraph<T>[src]

type IntoObjects = IntoObjects<T>

type IntoPredicates = IntoPredicates<T>

type IntoSubjects = IntoSubjects<T>

type IntoTriples = IntoIter<T>

Loading content...