[−][src]Struct grdf::hash_dataset::HashGraph
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.
pub fn triples<'a>(&'a self) -> Iter<'a, T>ⓘ where
T: 'a,
[src]
T: 'a,
pub fn subjects<'a>(&'a self) -> Subjects<'a, T>ⓘ where
T: 'a,
[src]
T: 'a,
pub fn predicates<'a>(&'a self, subject: &T) -> Predicates<'a, T>ⓘNotable traits for Predicates<'a, T>
impl<'a, T: Hash + Eq> Iterator for Predicates<'a, T> type Item = (&'a T, Objects<'a, T>);
where
T: 'a,
[src]
Notable traits for Predicates<'a, T>
impl<'a, T: Hash + Eq> Iterator for Predicates<'a, T> type Item = (&'a T, Objects<'a, T>);
T: 'a,
pub fn objects<'a>(&'a self, subject: &T, predicate: &T) -> Objects<'a, T>ⓘ where
T: 'a,
[src]
T: 'a,
pub fn contains(&self, Triple(subject, predicate, object): Triple<&T>) -> bool
[src]
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.
pub fn into_iter(self) -> Self::IntoIter
[src]
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.
pub fn into_iter(self) -> Self::IntoIter
[src]
impl<T: Hash + Eq> MutableGraph<T> for HashGraph<T>
[src]
pub fn insert(&mut self, triple: Triple<T>)
[src]
pub fn absorb<G: SizedGraph<T>>(&mut self, other: G)
[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.
pub fn into_triples(self) -> IntoIter<T>ⓘ
[src]
pub fn into_subjects(self) -> IntoSubjects<T>ⓘNotable traits for IntoSubjects<T>
impl<T: Hash + Eq> Iterator for IntoSubjects<T> type Item = (T, IntoPredicates<T>);
[src]
Notable traits for IntoSubjects<T>
impl<T: Hash + Eq> Iterator for IntoSubjects<T> type Item = (T, IntoPredicates<T>);
pub fn into_predicates(mut self: Self, subject: &T) -> IntoPredicates<T>ⓘNotable traits for IntoPredicates<T>
impl<T: Hash + Eq> Iterator for IntoPredicates<T> type Item = (T, IntoObjects<T>);
[src]
Notable traits for IntoPredicates<T>
impl<T: Hash + Eq> Iterator for IntoPredicates<T> type Item = (T, IntoObjects<T>);
pub fn into_objects(
mut self: Self,
subject: &T,
predicate: &T
) -> IntoObjects<T>ⓘNotable traits for IntoObjects<T>
impl<T: Hash + Eq> Iterator for IntoObjects<T> type Item = T;
[src]
mut self: Self,
subject: &T,
predicate: &T
) -> IntoObjects<T>ⓘ
Notable traits for IntoObjects<T>
impl<T: Hash + Eq> Iterator for IntoObjects<T> type Item = T;
Auto Trait Implementations
impl<T> RefUnwindSafe for HashGraph<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for HashGraph<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for HashGraph<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for HashGraph<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for HashGraph<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,