[][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 with the TokenTrait,

Required methods

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

Function that matches a single Token with the TokenTrait.

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

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

Loading content...