pub enum ConstraintScope {
Node(String),
Relationship(String),
}Expand description
Scope a constraint applies to. Node(label) covers every node
carrying the label; Relationship(edge_type) covers every edge
with the given type. Kept as an enum rather than a plain string
so future scope extensions (e.g. specific pattern shapes) land
additively.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ConstraintScope
impl Clone for ConstraintScope
Source§fn clone(&self) -> ConstraintScope
fn clone(&self) -> ConstraintScope
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstraintScope
impl Debug for ConstraintScope
Source§impl Hash for ConstraintScope
impl Hash for ConstraintScope
Source§impl PartialEq for ConstraintScope
impl PartialEq for ConstraintScope
impl Eq for ConstraintScope
impl StructuralPartialEq for ConstraintScope
Auto Trait Implementations§
impl Freeze for ConstraintScope
impl RefUnwindSafe for ConstraintScope
impl Send for ConstraintScope
impl Sync for ConstraintScope
impl Unpin for ConstraintScope
impl UnsafeUnpin for ConstraintScope
impl UnwindSafe for ConstraintScope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more