pub enum EnforcedLabelSite {
Node,
Start,
End,
}Expand description
Which node an enforced-label constraint kind requires to carry its
enforced label (ConstraintType::enforced_label_site).
Variants§
Node
The constrained node itself (labelExistence, nodeLabelExistence).
Start
The start node of the constrained relationship (sourceLabel,
sourceLabelExistence).
End
The end node of the constrained relationship (targetLabel,
targetLabelExistence).
Implementations§
Source§impl EnforcedLabelSite
impl EnforcedLabelSite
Sourcepub fn is_relationship(&self) -> bool
pub fn is_relationship(&self) -> bool
Whether the enforced label is checked on an endpoint of the
constrained relationship (Start/End) rather than on the
constrained node itself — the named form of the “the kind attaches
to a relationship iff the site is not EnforcedLabelSite::Node”
polarity rule (ConstraintType::enforced_label_site), so call
sites compare against a relationship flag without hand-rolled
boolean algebra.
Trait Implementations§
Source§impl Clone for EnforcedLabelSite
impl Clone for EnforcedLabelSite
impl Copy for EnforcedLabelSite
Source§impl Debug for EnforcedLabelSite
impl Debug for EnforcedLabelSite
impl Eq for EnforcedLabelSite
Source§impl Hash for EnforcedLabelSite
impl Hash for EnforcedLabelSite
Source§impl PartialEq for EnforcedLabelSite
impl PartialEq for EnforcedLabelSite
impl StructuralPartialEq for EnforcedLabelSite
Auto Trait Implementations§
impl Forget for EnforcedLabelSite
impl Freeze for EnforcedLabelSite
impl Move for EnforcedLabelSite
impl RefUnwindSafe for EnforcedLabelSite
impl Send for EnforcedLabelSite
impl Sync for EnforcedLabelSite
impl Unpin for EnforcedLabelSite
impl UnsafeUnpin for EnforcedLabelSite
impl UnwindSafe for EnforcedLabelSite
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.