Enum proc_macro::TokenTree 1.29.0[−][src]
Expand description
单个 token 或 token 树的定界序列 (例如 [1, (), ..])。
Variants
Group(Group)由括号定界符包围的 token 流。
Ident(Ident)标识符。
Punct(Punct)单个标点符号 (+,,,$ 等)。
Literal(Literal)字面量字符 ('a'),字符串 ("hello"),数字 (2.3) 等。
Implementations
Trait Implementations
以方便调试的形式打印 token 树。
将 token 树打印为应该无损转换为同一 token 树 (取模跨度) 的字符串,但可能带有 Delimiter::None 定界符和负数字字面量的 TokenTree::Group 除外。
创建包含单个 token 树的 token 流。
执行转换。