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
Source§fn clone(&self) -> NodePattern
fn clone(&self) -> NodePattern
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 moreAuto 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