hir_expand::builtin::quote

Trait ToTokenTree

Source
pub trait ToTokenTree {
    // Required method
    fn to_tokens(self, span: Span, builder: &mut TopSubtreeBuilder);
}

Required Methods§

Source

fn to_tokens(self, span: Span, builder: &mut TopSubtreeBuilder)

Implementations on Foreign Types§

Source§

impl ToTokenTree for &str

Source§

fn to_tokens(self, span: Span, builder: &mut TopSubtreeBuilder)

Source§

impl ToTokenTree for bool

Source§

fn to_tokens(self, span: Span, builder: &mut TopSubtreeBuilder)

Source§

impl ToTokenTree for i32

Source§

fn to_tokens(self, span: Span, builder: &mut TopSubtreeBuilder)

Source§

impl ToTokenTree for u32

Source§

fn to_tokens(self, span: Span, builder: &mut TopSubtreeBuilder)

Source§

impl ToTokenTree for usize

Source§

fn to_tokens(self, span: Span, builder: &mut TopSubtreeBuilder)

Source§

impl ToTokenTree for String

Source§

fn to_tokens(self, span: Span, builder: &mut TopSubtreeBuilder)

Source§

impl ToTokenTree for Symbol

Source§

fn to_tokens(self, span: Span, builder: &mut TopSubtreeBuilder)

Source§

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

Source§

fn to_tokens(self, span: Span, builder: &mut TopSubtreeBuilder)

Implementors§