[][src]Struct grdf::hash_dataset::HashGraph

pub struct HashGraph<T: Hash + Eq = Term> { /* fields omitted */ }

Graph implementation based on HashMap and HashSet.

Implementations

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

pub fn new() -> HashGraph<T>[src]

Create a new empty HashGraph.

pub fn from_graph<G: SizedGraph<T>>(g: G) -> HashGraph<T>[src]

Create a new HashGraph from another graph by consuming its triples.

Trait Implementations

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

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

type Objects = Objects<'a, T>

Objects iterator. Read more

type Predicates = Predicates<'a, T>

Subject predicates iterator. Read more

type Subjects = Subjects<'a, T>

Graph subjects iterator. Read more

type Triples = Iter<'a, T>

Triple iterators.

impl<'a, T: 'a + Hash + Eq> IntoIterator for &'a HashGraph<T>[src]

type IntoIter = Iter<'a, T>

Which kind of iterator are we turning this into?

type Item = Triple<&'a T>

The type of the elements being iterated over.

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

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?

type Item = Triple<T>

The type of the elements being iterated over.

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

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

type IntoObjects = IntoObjects<T>

Consuming objects iterator.

type IntoPredicates = IntoPredicates<T>

Consuming predicates iterator.

type IntoSubjects = IntoSubjects<T>

Consuming subjects iterator.

type IntoTriples = IntoIter<T>

Consuming triples iterator.

Auto Trait Implementations

impl<T> RefUnwindSafe for HashGraph<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for HashGraph<T> where
    T: Send
[src]

impl<T> Sync for HashGraph<T> where
    T: Sync
[src]

impl<T> Unpin for HashGraph<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for HashGraph<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.