[][src]Trait char_lex::TokenWrapper

pub trait TokenWrapper<T> where
    Self: Sized,
    T: TokenTrait
{ fn wrap(token: T, context: Context) -> Self; }

Trait for anything that wants to automatically wrap a Token.

Required methods

fn wrap(token: T, context: Context) -> Self

Function that wraps the Token and the Context and returns itself.

Loading content...

Implementors

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

Loading content...