Matcher

Trait Matcher 

Source
pub trait Matcher: Debug + Send {
    // Required method
    fn match_path(&self, path: &Path, kind: ParsedKind) -> bool;
}
Expand description

Common Matcher trait

Required Methods§

Source

fn match_path(&self, path: &Path, kind: ParsedKind) -> bool

Check whether the path matches

§Arguments
  • path - path to be matched (has to be a valid path)
  • kind - what kind (object, array, boolean, …) are matched data
§Returns
  • true if path matches, false otherwise

Implementors§