Enum proc_macro::Spacing 1.29.0[−][src]
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
A Punct
is not immediately followed by another Punct
.
E.g. +
is Alone
in + =
, +ident
and +()
.
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
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Spacing
impl UnwindSafe for Spacing
Blanket Implementations
Mutably borrows from an owned value. Read more