ToTokenTree

Trait ToTokenTree 

Source
pub(crate) trait ToTokenTree: Sized {
    // Required method
    fn into_token_tree(self) -> TokenTree;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ToTokenTree for &str

Source§

impl ToTokenTree for TokenTree

Source§

impl ToTokenTree for bool

Source§

impl ToTokenTree for i8

Source§

impl ToTokenTree for i32

Source§

impl ToTokenTree for u8

Source§

impl ToTokenTree for u16

Source§

impl ToTokenTree for u32

Source§

impl ToTokenTree for NonZero<u16>

Source§

impl ToTokenTree for Group

Source§

impl ToTokenTree for Ident

Source§

impl ToTokenTree for Literal

Source§

impl ToTokenTree for Punct

Implementors§