Enum proc_macro::Spacing 1.29.0[−][src]
pub enum Spacing { Alone, Joint, }
Expand description
描述 Punct
后面是紧跟另一个 Punct
(Spacing::Joint
) 还是不同的 token 或空格 (Spacing::Alone
)。
Variants
一个 Punct
后面不会紧跟另一个 Punct
。
E.g. +
在 + =
、+ident
和 +()
中为 Alone
。
Punct
紧随其后的是另一个 Punct
。
E.g. +
是 +=
和 ++
中的 Joint
。
此外,单引号 '
可以与标识符连接以形成生命周期: 'ident
.