[][src]Trait char_lex::TokenMatch

pub trait TokenMatch<T> where
    T: TokenTrait
{ fn matches_token(&self, t: &T) -> bool; }

Trait for anything that wants to match a single Token.

Required methods

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

Function that matches a single Token.

Loading content...

Implementations on Foreign Types

impl<T> TokenMatch<T> for Vec<T> where
    T: TokenTrait
[src]

Loading content...

Implementors

impl<T> TokenMatch<T> for T where
    T: TokenTrait
[src]

Loading content...