Trait proclet::SpacingExt

source ·
pub trait SpacingExt: ProcMacroExt<SpacingExt = Self> + Spacing {
    // Provided methods
    fn is_joint(&self) -> bool { ... }
    fn is_alone(&self) -> bool { ... }
}
Expand description

Extensions for Spacing.

This trait is implemented for Spacing in proc_macro and proc_macro2 if the corresponding feature is enabled.

Provided Methods§

source

fn is_joint(&self) -> bool

Check if this is Spacing::Joint.

source

fn is_alone(&self) -> bool

Check if this is Spacing::Alone.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SpacingExt for Spacing

Available on crate feature proc-macro only.
source§

impl SpacingExt for Spacing

Available on crate feature proc-macro2 only.

Implementors§