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.

Object Safety§

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 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 Add

source§

impl Token for AddEq

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 Bang

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 Colon2

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 Div

source§

impl Token for DivEq

source§

impl Token for Do

source§

impl Token for Dollar

source§

impl Token for Dot2

source§

impl Token for Dot3

source§

impl Token for Dot

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 Mod

source§

impl Token for Move

source§

impl Token for MulEq

source§

impl Token for Mut

source§

impl Token for Ne

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 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 Ref

source§

impl Token for Rem

source§

impl Token for RemEq

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 Star

source§

impl Token for Static

source§

impl Token for Struct

source§

impl Token for Sub

source§

impl Token for SubEq

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