Trait Spacing

Source
pub trait Spacing:
    ProcMacro<Spacing = Self>
    + Copy
    + Eq {
    const Joint: Self;
    const Alone: Self;
}
Expand description

Spacing API trait. See proc_macro::Spacing.

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

See also SpacingExt.

Required Associated Constants§

Source

const Joint: Self

proc_macro*::Spacing::Joint.

Source

const Alone: Self

proc_macro*::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 Spacing for Spacing

Available on crate feature proc-macro only.
Source§

const Joint: Self = Self::Joint

Source§

const Alone: Self = Self::Alone

Source§

impl Spacing for Spacing

Available on crate feature proc-macro2 only.
Source§

const Joint: Self = Self::Joint

Source§

const Alone: Self = Self::Alone

Implementors§