# [−] [src] Trait syn::token::Token

    pub trait Token: Sealed { }

Marker trait for types that represent single tokens.

This trait is sealed and cannot be implemented for types outside of Syn.

## Implementations on Foreign Types

### `impl Token for Group` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Punct` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Literal` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for TokenTree` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

Loading content...

## Implementors

### `impl Token for Lit` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Ident` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Lifetime` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for LitBool` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for LitByte` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for LitByteStr` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for LitChar` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for LitFloat` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for LitInt` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for LitStr` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Abstract` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Add` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for AddEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for And` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for AndAnd` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for AndEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for As` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Async` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for At` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Auto` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Await` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Bang` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Become` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Box` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Brace` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Bracket` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Break` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Caret` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for CaretEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Colon2` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Colon` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Comma` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Const` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Continue` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Crate` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Default` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Div` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for DivEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Do` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Dollar` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Dot2` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Dot3` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Dot` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for DotDotEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Dyn` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Else` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Enum` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Eq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for EqEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Extern` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for FatArrow` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Final` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Fn` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for For` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Ge` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for syn::token::Group` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Gt` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for If` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Impl` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for In` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for LArrow` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Le` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Let` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Loop` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Lt` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Macro` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Match` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Mod` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Move` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for MulEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Mut` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Ne` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Or` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for OrEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for OrOr` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Override` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Paren` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Pound` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Priv` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Pub` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Question` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for RArrow` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Ref` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Rem` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for RemEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Return` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for SelfType` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for SelfValue` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Semi` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Shl` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for ShlEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Shr` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for ShrEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Star` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Static` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Struct` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Sub` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for SubEq` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Super` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Tilde` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Trait` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Try` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Type` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Typeof` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Underscore` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Union` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Unsafe` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Unsized` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Use` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Virtual` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Where` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for While` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl Token for Yield` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

### `impl<T: CustomToken> Token for T` [src]

#### `fn peek(cursor: Cursor<'_>) -> bool` [src]

#### `fn display() -> &'static str` [src]

Loading content...