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
impl Copy for Spacing
sourceimpl Eq for Spacing
sourceimpl StructuralEq for Spacing
sourceimpl StructuralPartialEq for Spacing
sourceAuto Trait Implementations
impl RefUnwindSafe for Spacing
impl Send for Spacing
impl Sync for Spacing
impl Unpin for Spacing
impl UnwindSafe for Spacing
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
sourceUses borrowed data to replace owned data, usually by cloning. Read more