[][src]Struct casco::proc_macro2::TokenStream

pub struct TokenStream(_);

Wrapper around the proc_macro2 TokenStream.

Trait Implementations

impl From<TokenStream> for TokenStream[src]

impl Group<TokenStream> for Group[src]

impl Into<TokenStream> for TokenStream[src]

impl IntoIterator for TokenStream[src]

type IntoIter = IntoIter

Which kind of iterator are we turning this into?

type Item = TokenTree<TokenStream>

The type of the elements being iterated over.

impl TokenStream for TokenStream[src]

type Group = Group

A delimited token stream.

type Ident = Ident

An identifier.

type Literal = 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). Boolean literals like true and false do not belong here, they are Idents. Read more

type Punct = Punct

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

type Span = Span

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> IntoTokenStream for T where
    T: TokenStream
[src]

type TokenStream = T

This is the type of token stream that this trait converts into.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.