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
.
Trait Implementations§
source§impl PartialEq<Spacing> for Spacing
impl PartialEq<Spacing> for Spacing
impl Copy for Spacing
impl Eq for Spacing
impl StructuralEq for Spacing
impl StructuralPartialEq for Spacing
Auto Trait Implementations§
impl RefUnwindSafe for Spacing
impl Send for Spacing
impl Sync for Spacing
impl Unpin for Spacing
impl UnwindSafe for Spacing
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more