pub struct HasLabelExpr {
pub expr: Expr,
pub label_expr: LabelExpr,
pub negated: bool,
pub strict: bool,
}Expand description
A label/type predicate: n:Label, n IS Label (CIP-14), or
n IS [NOT] LABELED <label-expr> / the n IS NOT <label-expr> shorthand
(CIP-249).
Fields§
§expr: Expr§label_expr: LabelExpr§negated: boolTrue for IS NOT LABELED <LE> and its IS NOT <LE> shorthand, which
negate the whole expression (unlike an inline ! inside label_expr,
which negates only the following primary).
strict: boolTrue for the CIP-249 IS [NOT] LABELED <LE> forms (and the IS NOT <LE> shorthand), which raise a runtime type error for a non-node/
relationship LHS. False for the pre-existing :/bare IS <LE>
forms (CIP-14), which fall back to false for a non-entity LHS,
preserving their original behavior.
Trait Implementations§
Source§impl Clone for HasLabelExpr
impl Clone for HasLabelExpr
Source§impl Debug for HasLabelExpr
impl Debug for HasLabelExpr
Source§impl PartialEq for HasLabelExpr
impl PartialEq for HasLabelExpr
impl StructuralPartialEq for HasLabelExpr
Auto Trait Implementations§
impl Forget for HasLabelExpr
impl Freeze for HasLabelExpr
impl Move for HasLabelExpr
impl RefUnwindSafe for HasLabelExpr
impl Send for HasLabelExpr
impl Sync for HasLabelExpr
impl Unpin for HasLabelExpr
impl UnsafeUnpin for HasLabelExpr
impl UnwindSafe for HasLabelExpr
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