pub struct NodePattern {
pub variable: String,
pub node_type: Option<NodeType>,
pub label_pattern: Option<String>,
pub attribute_constraints: HashMap<String, Value>,
}Expand description
Node pattern for pattern matching
Fields§
§variable: StringPattern variable name
node_type: Option<NodeType>Node type constraint
label_pattern: Option<String>Label constraint
attribute_constraints: HashMap<String, Value>Attribute constraints
Trait 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 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