pub trait Rule: Debug { // Required method fn next(&mut self, parser: &mut Parser, rest: &str) -> Option<usize>; }
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).
parser
Parser::set_op
Some