[][src]Module pmutil::prelude

Prelude for convenience.

Re-exports

pub use super::comment::comment;
pub use super::IdentExt;
pub use super::ToTokensExt;

Structs

Group

A delimited token stream.

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 #.

Quote

Buffer for quasi quotting.

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

TokenTree

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

Traits

SpanExt

Extension trait for Span and syn::Span.