pub type Matcher<Weight> = dyn Fn(&Weight) -> bool;Expand description
The Matcher type stands for any function that evaluates, given an element in the base graph with the type Weight, if the pattern graph accepts this element.
As an example, we may define a function that tests if a node matches a Rust pattern.
Recommended ways to create conditions are using either the lambda functions or the crate::matcher macro.