hir_expand::builtin::quote

Trait ToTokenTree

source
pub trait ToTokenTree {
    // Required method
    fn to_token(self, span: Span) -> TokenTree;
}

Required Methods§

source

fn to_token(self, span: Span) -> TokenTree

Implementations on Foreign Types§

source§

impl ToTokenTree for &str

source§

fn to_token(self, span: Span) -> TokenTree

source§

impl ToTokenTree for bool

source§

fn to_token(self, span: Span) -> TokenTree

source§

impl ToTokenTree for i32

source§

fn to_token(self, span: Span) -> TokenTree

source§

impl ToTokenTree for u32

source§

fn to_token(self, span: Span) -> TokenTree

source§

impl ToTokenTree for usize

source§

fn to_token(self, span: Span) -> TokenTree

source§

impl ToTokenTree for String

source§

fn to_token(self, span: Span) -> TokenTree

source§

impl ToTokenTree for Symbol

source§

fn to_token(self, span: Span) -> TokenTree

source§

impl<T: ToTokenTree + Clone> ToTokenTree for &T

source§

fn to_token(self, span: Span) -> TokenTree

Implementors§