Enum proc_macro::Spacing
1.29.0 · source · [−]pub enum Spacing {
Alone,
Joint,
}
Expand description
Describes whether a Punct
is followed immediately by another Punct
(Spacing::Joint
) or
by a different token or whitespace (Spacing::Alone
).
Variants
Alone
A Punct
is not immediately followed by another Punct
.
E.g. +
is Alone
in + =
, +ident
and +()
.
Joint
A Punct
is immediately followed by another Punct
.
E.g. +
is Joint
in +=
and ++
.
Additionally, single quote '
can join with identifiers to form lifetimes: 'ident
.