Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§