Struct syntax::tokenstream::TokenStream [] [src]

pub struct TokenStream { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (rustc_private)

Token Streams

A TokenStream is an abstract sequence of tokens, organized into TokenTrees. The goal is for procedural macros to work with TokenStreams and TokenTrees instead of a representation of the abstract syntax tree. Today's TokenTrees can still contain AST via Token::Interpolated for back-compat.

Methods

impl TokenStream
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

Compares two TokenStreams, checking equality without regarding span information.

Trait Implementations

impl Clone for TokenStream
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TokenStream
[src]

Formats the value using the given formatter.

impl From<TokenTree> for TokenStream
[src]

Performs the conversion.

impl<T: Into<TokenStream>> FromIterator<T> for TokenStream
[src]

Creates a value from an iterator. Read more

impl Eq for TokenStream
[src]

impl PartialEq<TokenStream> for TokenStream
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<ThinTokenStream> for TokenStream
[src]

Performs the conversion.

impl Display for TokenStream
[src]

Formats the value using the given formatter. Read more

impl Encodable for TokenStream
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

impl Decodable for TokenStream
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

impl Hash for TokenStream
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.