pub struct NodePattern {
pub variable: Option<Variable>,
pub labels: SmallVec<SmallVec<String, 2>, 2>,
pub properties: Option<Expr>,
pub span: Span,
}Fields§
§variable: Option<Variable>§labels: SmallVec<SmallVec<String, 2>, 2>Each inner Vec is a disjunctive group (OR).
The outer SmallVec is conjunctive (AND across groups).
:A:B → [[A], [B]]; :A|B → [[A, B]].
properties: Option<Expr>§span: SpanTrait Implementations§
Source§impl Clone for NodePattern
impl Clone for NodePattern
Auto Trait Implementations§
impl Freeze for NodePattern
impl RefUnwindSafe for NodePattern
impl Send for NodePattern
impl Sync for NodePattern
impl Unpin for NodePattern
impl UnsafeUnpin for NodePattern
impl UnwindSafe for NodePattern
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