Skip to main content

TokenMatch

Trait TokenMatch 

Source
pub trait TokenMatch<T>
where T: TokenTrait,
{ // Required method fn matches_token(&self, t: &T) -> bool; }
Expand description

Trait for anything that wants to match a single Token.

Required Methods§

Source

fn matches_token(&self, t: &T) -> bool

Function that matches a single Token.

Implementations on Foreign Types§

Source§

impl<T> TokenMatch<T> for Vec<T>
where T: TokenTrait,

Source§

fn matches_token(&self, t: &T) -> bool

Implementors§

Source§

impl<T> TokenMatch<T> for T
where T: TokenTrait,