Skip to main content

partiql_eval/eval/graph/
types.rs

1use std::fmt::Debug;
2use std::hash::Hash;
3
4/// The collected types for a graph.
5pub trait GraphTypes: 'static + Sized + Debug + Clone + Eq + Hash {
6    /// A Binder (name in a graph pattern) for a graph.
7    type Binder: Debug + Clone + Eq + Hash;
8    /// A Label for a graph.
9    type Label: Debug + Clone + Eq + Hash;
10    /// A Node for a graph.
11    type NodeId: Debug + Clone + Eq + Hash;
12    /// An Edge for a graph.
13    type EdgeId: Debug + Clone + Eq + Hash;
14}