Enum proc_macro::Spacing 1.29.0[−][src]
pub enum Spacing {
Alone,
Joint,
}Whether an Punct is followed immediately by another Punct or
followed by another token or whitespace.
Variants
AloneE.g. + is Alone in + =, +ident or +().
JointE.g. + is Joint in += or '#.
Additionally, single quote ' can join with identifiers to form lifetimes 'ident.
Trait Implementations
impl Copy for Spacing[src]
impl Copy for Spacingimpl Clone for Spacing[src]
impl Clone for Spacingfn clone(&self) -> Spacing[src]
fn clone(&self) -> SpacingReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Spacing[src]
impl Debug for Spacingfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Spacing[src]
impl PartialEq for Spacingfn eq(&self, other: &Spacing) -> bool[src]
fn eq(&self, other: &Spacing) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Spacing[src]
impl Eq for Spacing