# Token in syn::token - Rust
Marker trait for types that represent single tokens.

syn::token

# Trait Token

Source

    pub trait Token: Sealed { }

Expand description

Marker trait for types that represent single tokens.

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

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

## Implementations on Foreign Types§

Source §

### impl Token for TokenTree

Source §

### impl Token for Group

Source §

### impl Token for Literal

Source §

### impl Token for Punct

## Implementors§

Source §

### impl Token for Lit

Source §

### impl Token for Ident

Source §

### impl Token for Lifetime

Source §

### impl Token for LitBool

Source §

### impl Token for LitByte

Source §

### impl Token for LitByteStr

Source §

### impl Token for LitCStr

Source §

### impl Token for LitChar

Source §

### impl Token for LitFloat

Source §

### impl Token for LitInt

Source §

### impl Token for LitStr

Source §

### impl Token for Abstract

Source §

### impl Token for And

Source §

### impl Token for AndAnd

Source §

### impl Token for AndEq

Source §

### impl Token for As

Source §

### impl Token for Async

Source §

### impl Token for At

Source §

### impl Token for Auto

Source §

### impl Token for Await

Source §

### impl Token for Become

Source §

### impl Token for Box

Source §

### impl Token for Brace

Source §

### impl Token for Bracket

Source §

### impl Token for Break

Source §

### impl Token for Caret

Source §

### impl Token for CaretEq

Source §

### impl Token for Colon

Source §

### impl Token for Comma

Source §

### impl Token for Const

Source §

### impl Token for Continue

Source §

### impl Token for Crate

Source §

### impl Token for Default

Source §

### impl Token for Do

Source §

### impl Token for Dollar

Source §

### impl Token for Dot

Source §

### impl Token for DotDot

Source §

### impl Token for DotDotDot

Source §

### impl Token for DotDotEq

Source §

### impl Token for Dyn

Source §

### impl Token for Else

Source §

### impl Token for Enum

Source §

### impl Token for Eq

Source §

### impl Token for EqEq

Source §

### impl Token for Extern

Source §

### impl Token for FatArrow

Source §

### impl Token for Final

Source §

### impl Token for Fn

Source §

### impl Token for For

Source §

### impl Token for Ge

Source §

### impl Token for syn::token::Group

Source §

### impl Token for Gt

Source §

### impl Token for If

Source §

### impl Token for Impl

Source §

### impl Token for In

Source §

### impl Token for LArrow

Source §

### impl Token for Le

Source §

### impl Token for Let

Source §

### impl Token for Loop

Source §

### impl Token for Lt

Source §

### impl Token for Macro

Source §

### impl Token for Match

Source §

### impl Token for Minus

Source §

### impl Token for MinusEq

Source §

### impl Token for Mod

Source §

### impl Token for Move

Source §

### impl Token for Mut

Source §

### impl Token for Ne

Source §

### impl Token for Not

Source §

### impl Token for Or

Source §

### impl Token for OrEq

Source §

### impl Token for OrOr

Source §

### impl Token for Override

Source §

### impl Token for Paren

Source §

### impl Token for PathSep

Source §

### impl Token for Percent

Source §

### impl Token for PercentEq

Source §

### impl Token for Plus

Source §

### impl Token for PlusEq

Source §

### impl Token for Pound

Source §

### impl Token for Priv

Source §

### impl Token for Pub

Source §

### impl Token for Question

Source §

### impl Token for RArrow

Source §

### impl Token for Raw

Source §

### impl Token for Ref

Source §

### impl Token for Return

Source §

### impl Token for SelfType

Source §

### impl Token for SelfValue

Source §

### impl Token for Semi

Source §

### impl Token for Shl

Source §

### impl Token for ShlEq

Source §

### impl Token for Shr

Source §

### impl Token for ShrEq

Source §

### impl Token for Slash

Source §

### impl Token for SlashEq

Source §

### impl Token for Star

Source §

### impl Token for StarEq

Source §

### impl Token for Static

Source §

### impl Token for Struct

Source §

### impl Token for Super

Source §

### impl Token for Tilde

Source §

### impl Token for Trait

Source §

### impl Token for Try

Source §

### impl Token for Type

Source §

### impl Token for Typeof

Source §

### impl Token for Underscore

Source §

### impl Token for Union

Source §

### impl Token for Unsafe

Source §

### impl Token for Unsized

Source §

### impl Token for Use

Source §

### impl Token for Virtual

Source §

### impl Token for Where

Source §

### impl Token for While

Source §

### impl Token for Yield

Source §

### impl<T: CustomToken> Token for T