pub fn eq_token(&self, t: Token) -> bool {
        match *self {
            TokenTree::Token(_, ref tk) => *tk == t,
            _ => false,
        }
    }
/// Indicates if the stream is a token that is equal to the provided token.
Indicates if the stream is a token that is equal to the provided token.
Indicates if the stream is a token that is equal to the provided token .
pub fn eq_token(&self, t: Token) -> bool {
        match *self {
            TokenTree::Token(_, ref tk) => *tk == t,
            _ => false,
        }
    }
pub fn eq_token ( & self , t : Token ) -> bool { match * self { TokenTree :: Token ( _ , ref tk ) => * tk == t , _ => false , } }
Indicates if the stream is a token that is equal to the provided token.
Indicates if the stream is a token that is equal to the provided token .
&self
t
Token
&self
t
Token