pub trait SingleTokenPattern: LSend {
// Required method
fn matches_token(&self, token: &Token, source: &[char]) -> bool;
}Expand description
A simpler version of the Pattern trait that only matches a single
token.
pub trait SingleTokenPattern: LSend {
// Required method
fn matches_token(&self, token: &Token, source: &[char]) -> bool;
}A simpler version of the Pattern trait that only matches a single
token.