Enum proc_macro2::Spacing
source · [−]pub enum Spacing {
Alone,
Joint,
}
Expand description
Whether a Punct
is followed immediately by another Punct
or followed by
another token or whitespace.
Variants
Alone
E.g. +
is Alone
in + =
, +ident
or +()
.
Joint
E.g. +
is Joint
in +=
or '
is Joint
in '#
.
Additionally, single quote '
can join with identifiers to form
lifetimes 'ident
.
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more