Trait elipdotter::query::parse::Rule

source ·
pub trait Rule: Debug {
    // Required method
    fn next(&mut self, parser: &mut Parser, rest: &str) -> Option<usize>;
}

Required Methods§

source

fn next(&mut self, parser: &mut Parser, rest: &str) -> Option<usize>

Returns

If the match is successful, make changes to the parser (e.g. Parser::set_op) and return Some with the number of steps to step forward (length of operator).

Implementors§