Enum proc_macro::Delimiter 1.29.0[−][src]
pub enum Delimiter { Parenthesis, Brace, Bracket, None, }
Expand description
描述如何分隔 token 树的序列。
Variants
( ... )
{ ... }
[ ... ]
Ø ... Ø
一个隐式定界符,例如,可能出现在来自 “macro variable” $var
的 tokens 周围。
在诸如 $var
为 1 + 2
的 $var * 3
之类的情况下,保留操作员的优先级很重要。
隐式定界符可能无法在 token 流通过字符串的往返过程中幸免。