[][src]Module panini_common::rs

Macros

Token

A type-macro that expands to the name of the Rust type representation of a given token.

Structs

Attribute

An attribute like #[repr(transparent)].

Dollar

$

Ident

A word of Rust code, which may be a keyword or legal variable name.

Literal

A literal string ("hello"), byte string (b"hello"), character ('a'), byte character (b'a'), an integer or floating point number with or without a suffix (1, 1u8, 2.3, 2.3f32).

Punct

An Punct is an single punctuation character like +, - or #.

Span

A region of source code, along with macro expansion information.

TokenStream

An abstract stream of tokens, or more concretely a sequence of token trees.

Enums

Expr

A Rust expression.

Meta

Content of a compile-time structured attribute.

Pat

A pattern in a local binding, function signature, match expression, or various other places.

Spacing

Whether an Punct is followed immediately by another Punct or followed by another token or whitespace.

TokenTree

A single token or a delimited sequence of token trees (e.g. [1, (), ..]).

Traits

ToTokens

Types that can be interpolated inside a quote! invocation.

Token

Marker trait for types that represent single tokens.

Functions

str_to_ident