[][src]Struct sophia::graph::inmem::HashGraph

pub struct HashGraph<I> where
    I: TermIndexMap,
    I::Index: Hash,
    <I::Factory as TermFactory>::TermData: 'static, 
{ /* fields omitted */ }

A generic implementation of Graph and MutableGraph, storing its terms in a TermIndexMap, and its triples in a HashSet.

Implementations

impl<I> HashGraph<I> where
    I: TermIndexMap,
    I::Index: Hash
[src]

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

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl<I> CollectibleGraph for HashGraph<I> where
    I: TermIndexMap,
    I::Index: Hash,
    <I::Factory as TermFactory>::TermData: 'static, 
[src]

impl<I: Default> Default for HashGraph<I> where
    I: TermIndexMap,
    I::Index: Hash,
    <I::Factory as TermFactory>::TermData: 'static,
    I::Index: Default
[src]

impl<I> Graph for HashGraph<I> where
    I: TermIndexMap,
    I::Index: Hash,
    <I::Factory as TermFactory>::TermData: 'static, 
[src]

type Triple = ByTermRefs<Term<Self::TermData>>

Determine the type of Triples that the methods of this graph will yield (see streaming_mode Read more

type Error = Infallible

The error type that this graph may raise.

impl<I> IndexedGraph for HashGraph<I> where
    I: TermIndexMap,
    I::Index: Hash,
    <I::Factory as TermFactory>::TermData: 'static, 
[src]

type Index = I::Index

The type used to represent terms internally.

type TermData = <I::Factory as TermFactory>::TermData

impl<I> MutableGraph for HashGraph<I> where
    I: TermIndexMap,
    I::Index: Hash,
    <I::Factory as TermFactory>::TermData: 'static, 
[src]

type MutationError = Infallible

The error type that this graph may raise during mutations.

impl<I> SetGraph for HashGraph<I> where
    I: TermIndexMap,
    I::Index: Hash
[src]

Auto Trait Implementations

impl<I> RefUnwindSafe for HashGraph<I> where
    I: RefUnwindSafe,
    <I as TermIndexMap>::Index: RefUnwindSafe

impl<I> Send for HashGraph<I> where
    I: Send,
    <I as TermIndexMap>::Index: Send

impl<I> Sync for HashGraph<I> where
    I: Sync,
    <I as TermIndexMap>::Index: Sync

impl<I> Unpin for HashGraph<I> where
    I: Unpin,
    <I as TermIndexMap>::Index: Unpin

impl<I> UnwindSafe for HashGraph<I> where
    I: UnwindSafe,
    <I as TermIndexMap>::Index: UnwindSafe

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.