Crate token_stream2

Source

Structs§

SpannedToken
This is an equivalent to the Token type with a span attached. Use SpannedToken::span() to retrieve it’s span, and SpannedToken::token() to retreieve it’s token. Note that this type is read-only, you ideally should not mutate it.
TokenStream

Enums§

Token
This enum represents a list of all valid tokens that procedural macros can parse. This is an abstraction over the system that proc_macro uses in it’s TokenTree.