Struct syntex_syntax::tokenstream::TokenStream [] [src]

pub struct TokenStream { /* fields omitted */ }

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]

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 From<Token> 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 Serialize for TokenStream
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for TokenStream
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Hash for TokenStream
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more