Skip to main content

IntoTokenTree

Trait IntoTokenTree 

Source
pub trait IntoTokenTree: IntoTokens + IntoTokenTree {
    // Required methods
    fn into_token_tree(self) -> TokenTree;
    fn into_token_tree2(self) -> TokenTree2;
}
Expand description

Into a token tree.

This trait is sealed and all methods are provided.

Required Methods§

Source

fn into_token_tree(self) -> TokenTree

Available on crate feature proc-macro only.
Source

fn into_token_tree2(self) -> TokenTree2

Available on crate feature proc-macro2 only.

Implementations on Foreign Types§

Source§

impl IntoTokenTree for TT

Available on crate feature proc-macro and (crate features proc-macro or proc-macro2) only.
Source§

fn into_token_tree(self) -> TokenTree

Source§

fn into_token_tree2(self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

impl IntoTokenTree for TT

Available on crate feature proc-macro2 and (crate features proc-macro or proc-macro2) only.
Source§

fn into_token_tree(self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn into_token_tree2(self) -> TokenTree

Source§

impl IntoTokenTree for TT

Available on crate feature proc-macro and (crate features proc-macro or proc-macro2) only.
Source§

fn into_token_tree(self) -> TokenTree

Source§

fn into_token_tree2(self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

impl IntoTokenTree for TT

Available on crate feature proc-macro and (crate features proc-macro or proc-macro2) only.
Source§

fn into_token_tree(self) -> TokenTree

Source§

fn into_token_tree2(self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

impl IntoTokenTree for TT

Available on crate feature proc-macro and (crate features proc-macro or proc-macro2) only.
Source§

fn into_token_tree(self) -> TokenTree

Source§

fn into_token_tree2(self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

impl IntoTokenTree for TT

Available on crate feature proc-macro and (crate features proc-macro or proc-macro2) only.
Source§

fn into_token_tree(self) -> TokenTree

Source§

fn into_token_tree2(self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

impl IntoTokenTree for TT

Available on crate feature proc-macro2 and (crate features proc-macro or proc-macro2) only.
Source§

fn into_token_tree(self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn into_token_tree2(self) -> TokenTree

Source§

impl IntoTokenTree for TT

Available on crate feature proc-macro2 and (crate features proc-macro or proc-macro2) only.
Source§

fn into_token_tree(self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn into_token_tree2(self) -> TokenTree

Source§

impl IntoTokenTree for TT

Available on crate feature proc-macro2 and (crate features proc-macro or proc-macro2) only.
Source§

fn into_token_tree(self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn into_token_tree2(self) -> TokenTree

Source§

impl IntoTokenTree for TT

Available on crate feature proc-macro2 and (crate features proc-macro or proc-macro2) only.
Source§

fn into_token_tree(self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn into_token_tree2(self) -> TokenTree

Source§

impl<T: ?Sized + IntoTokenTree> IntoTokenTree for Box<T>

Available on crate feature alloc only.
Source§

fn into_token_tree(self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn into_token_tree2(self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

impl<T: ?Sized + ToTokenTree> IntoTokenTree for &T

Source§

fn into_token_tree(self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn into_token_tree2(self) -> TokenTree2

Available on crate feature proc-macro2 only.
Source§

impl<T: ?Sized + ToTokenTree> IntoTokenTree for Rc<T>

Available on crate feature alloc only.
Source§

fn into_token_tree(self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn into_token_tree2(self) -> TokenTree

Available on crate feature proc-macro2 only.

Implementors§

Source§

impl IntoTokenTree for Never

Source§

impl<'a, S: MaybeSpan> IntoTokenTree for Ident<'a, S>

Source§

impl<'a, S: MaybeSpan> IntoTokenTree for Literal<'a, S>

Source§

impl<A: IntoTokenTree, B: IntoTokenTree> IntoTokenTree for Either<A, B>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Add<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::And<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::At<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Bang<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Caret<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Colon<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Comma<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Div<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Dollar<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Dot<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Eq<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Gt<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Lt<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Or<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Pound<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Question<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Rem<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Semi<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Star<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Sub<S>

Source§

impl<S: MaybeSpan> IntoTokenTree for typed_quote::tokens::punct::Tilde<S>

Source§

impl<T: HasConstIdent + ?Sized, S: MaybeSpan> IntoTokenTree for ConstIdent<T, S>

Source§

impl<T: HasConstLiteral + ?Sized, S: MaybeSpan> IntoTokenTree for ConstLiteral<T, S>

Source§

impl<T: IntoTokens, S: MaybeSpan> IntoTokenTree for typed_quote::tokens::Brace<T, S>

Source§

impl<T: IntoTokens, S: MaybeSpan> IntoTokenTree for typed_quote::tokens::Bracket<T, S>

Source§

impl<T: IntoTokens, S: MaybeSpan> IntoTokenTree for typed_quote::tokens::Parenthesis<T, S>