Trait streamson_lib::matcher::Matcher[][src]

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

Common Matcher trait

Required methods

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

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
Loading content...

Implementors

impl Matcher for Combinator[src]

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

impl Matcher for Depth[src]

fn match_path(&self, path: &Path, _kind: ParsedKind) -> bool[src]

impl Matcher for Regex[src]

fn match_path(&self, path: &Path, _kind: ParsedKind) -> bool[src]

impl Matcher for Simple[src]

fn match_path(&self, path: &Path, _kind: ParsedKind) -> bool[src]

Loading content...