pub enum GraphPattern {
AnyNode,
OpType(OpType),
Sequence(Vec<GraphPattern>),
Choice(Vec<GraphPattern>),
WithInputs(usize),
WithOutputs(usize),
Capture(String, Box<GraphPattern>),
ZeroOrMore(Box<GraphPattern>),
OneOrMore(Box<GraphPattern>),
}Expand description
A pattern that can match against graph structures
Variants§
AnyNode
Match any single node
OpType(OpType)
Match a specific operation type
Sequence(Vec<GraphPattern>)
Match a sequence of operations
Choice(Vec<GraphPattern>)
Match any of the given patterns
WithInputs(usize)
Match a node with specific input count
WithOutputs(usize)
Match a node with specific output count
Capture(String, Box<GraphPattern>)
Match a named subpattern for capture
ZeroOrMore(Box<GraphPattern>)
Match a pattern zero or more times
OneOrMore(Box<GraphPattern>)
Match a pattern one or more times
Trait Implementations§
Source§impl Clone for GraphPattern
impl Clone for GraphPattern
Source§fn clone(&self) -> GraphPattern
fn clone(&self) -> GraphPattern
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 moreSource§impl Debug for GraphPattern
impl Debug for GraphPattern
Source§impl PartialEq for GraphPattern
impl PartialEq for GraphPattern
impl StructuralPartialEq for GraphPattern
Auto Trait Implementations§
impl Freeze for GraphPattern
impl RefUnwindSafe for GraphPattern
impl Send for GraphPattern
impl Sync for GraphPattern
impl Unpin for GraphPattern
impl UnwindSafe for GraphPattern
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