Trait Match
Source pub trait Match<T> {
// Required method
fn matcher(&self, data: &[T]) -> (bool, usize);
}
Expand description
Describes a matchable object.
Returns true if the data matches the pattern.
§Arguments
data - the data to match
§Returns
(true, index) if the data matches the pattern,
(false, index) otherwise
Source§Implement the Match trait for the token number.