Skip to main content

ToTokenTree

Trait ToTokenTree 

Source
pub trait ToTokenTree:
    IntoTokenTree
    + ToTokens
    + ToTokenTree {
    // Required methods
    fn to_token_tree(&self) -> TokenTree;
    fn to_token_tree2(&self) -> TokenTree2;
}
Expand description

To a token tree.

This trait is sealed and all methods are provided.

Required Methods§

Source

fn to_token_tree(&self) -> TokenTree

Available on crate feature proc-macro only.
Source

fn to_token_tree2(&self) -> TokenTree2

Available on crate feature proc-macro2 only.

Implementations on Foreign Types§

Source§

impl ToTokenTree for TT

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

fn to_token_tree(&self) -> TokenTree

Source§

fn to_token_tree2(&self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

impl ToTokenTree for TT

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

fn to_token_tree(&self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn to_token_tree2(&self) -> TokenTree

Source§

impl ToTokenTree for TT

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

fn to_token_tree(&self) -> TokenTree

Source§

fn to_token_tree2(&self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

impl ToTokenTree for TT

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

fn to_token_tree(&self) -> TokenTree

Source§

fn to_token_tree2(&self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

impl ToTokenTree for TT

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

fn to_token_tree(&self) -> TokenTree

Source§

fn to_token_tree2(&self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

impl ToTokenTree for TT

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

fn to_token_tree(&self) -> TokenTree

Source§

fn to_token_tree2(&self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

impl ToTokenTree for TT

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

fn to_token_tree(&self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn to_token_tree2(&self) -> TokenTree

Source§

impl ToTokenTree for TT

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

fn to_token_tree(&self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn to_token_tree2(&self) -> TokenTree

Source§

impl ToTokenTree for TT

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

fn to_token_tree(&self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn to_token_tree2(&self) -> TokenTree

Source§

impl ToTokenTree for TT

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

fn to_token_tree(&self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn to_token_tree2(&self) -> TokenTree

Source§

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

Source§

fn to_token_tree(&self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn to_token_tree2(&self) -> TokenTree2

Available on crate feature proc-macro2 only.
Source§

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

Available on crate feature alloc only.
Source§

fn to_token_tree(&self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn to_token_tree2(&self) -> TokenTree

Available on crate feature proc-macro2 only.
Source§

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

Available on crate feature alloc only.
Source§

fn to_token_tree(&self) -> TokenTree

Available on crate feature proc-macro only.
Source§

fn to_token_tree2(&self) -> TokenTree

Available on crate feature proc-macro2 only.

Implementors§

Source§

impl ToTokenTree for Never

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T: ToTokens, S: MaybeSpan> ToTokenTree for typed_quote::tokens::Brace<T, S>

Source§

impl<T: ToTokens, S: MaybeSpan> ToTokenTree for typed_quote::tokens::Bracket<T, S>

Source§

impl<T: ToTokens, S: MaybeSpan> ToTokenTree for typed_quote::tokens::Parenthesis<T, S>