Skip to main content

PatternGraph

Struct PatternGraph 

Source
pub struct PatternGraph<Extra, V: GraphValue> {
    pub pg_nodes: HashMap<V::Id, Pattern<V>>,
    pub pg_relationships: HashMap<V::Id, Pattern<V>>,
    pub pg_walks: HashMap<V::Id, Pattern<V>>,
    pub pg_annotations: HashMap<V::Id, Pattern<V>>,
    pub pg_other: HashMap<V::Id, (Extra, Pattern<V>)>,
    pub pg_conflicts: HashMap<V::Id, Vec<Pattern<V>>>,
}
Expand description

Materialized graph container with six typed collections, each keyed by identity.

Fields§

§pg_nodes: HashMap<V::Id, Pattern<V>>§pg_relationships: HashMap<V::Id, Pattern<V>>§pg_walks: HashMap<V::Id, Pattern<V>>§pg_annotations: HashMap<V::Id, Pattern<V>>§pg_other: HashMap<V::Id, (Extra, Pattern<V>)>§pg_conflicts: HashMap<V::Id, Vec<Pattern<V>>>

Implementations§

Source§

impl<Extra, V: GraphValue> PatternGraph<Extra, V>

Source

pub fn empty() -> Self

Returns an empty graph with all six maps empty.

Auto Trait Implementations§

§

impl<Extra, V> Freeze for PatternGraph<Extra, V>

§

impl<Extra, V> RefUnwindSafe for PatternGraph<Extra, V>

§

impl<Extra, V> Send for PatternGraph<Extra, V>
where <V as GraphValue>::Id: Send, V: Send, Extra: Send,

§

impl<Extra, V> Sync for PatternGraph<Extra, V>
where <V as GraphValue>::Id: Sync, V: Sync, Extra: Sync,

§

impl<Extra, V> Unpin for PatternGraph<Extra, V>
where <V as GraphValue>::Id: Unpin, V: Unpin, Extra: Unpin,

§

impl<Extra, V> UnsafeUnpin for PatternGraph<Extra, V>

§

impl<Extra, V> UnwindSafe for PatternGraph<Extra, V>
where <V as GraphValue>::Id: UnwindSafe, V: UnwindSafe, Extra: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.