Trait commodore::Matcher
[−]
[src]
pub trait Matcher: Send + Sync { fn matches<'a>(&self, cmd: &'a Command) -> (Option<Captures<'a>>, bool); }
Command matching interface
Required Methods
fn matches<'a>(&self, cmd: &'a Command) -> (Option<Captures<'a>>, bool)
returns of tuple of optional captures and an indicator for whether or not the provided command is matched