[][src]Trait ogma::matcher::Match

pub trait Match<'a, C> {
    fn match_str(ctx: &mut C, string: &'a str) -> Result<Self, MatchError>;
}

Create Self from a string slice given a context. This should be implemented by functions that wish to be compileable and read their arguments from an English string

Required methods

fn match_str(ctx: &mut C, string: &'a str) -> Result<Self, MatchError>

Loading content...

Implementors

Loading content...