Struct rustc_ap_proc_macro::TokenTree [] [src]

pub struct TokenTree {
    pub span: Span,
    pub kind: TokenNode,
}
🔬 This is a nightly-only experimental API. (proc_macro #38356)

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

Fields

🔬 This is a nightly-only experimental API. (proc_macro #38356)

The TokenTree's span

🔬 This is a nightly-only experimental API. (proc_macro #38356)

Description of the TokenTree

Trait Implementations

impl From<TokenTree> for TokenStream
[src]

[src]

Performs the conversion.

impl Clone for TokenTree
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for TokenTree
[src]

[src]

Formats the value using the given formatter. Read more

impl From<TokenNode> for TokenTree
[src]

[src]

Performs the conversion.

impl Display for TokenTree
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for TokenTree

impl !Sync for TokenTree