Trait Delimiter

Source
pub trait Delimiter:
    ProcMacro<Delimiter = Self>
    + Copy
    + Eq {
    const Parenthesis: Self;
    const Brace: Self;
    const Bracket: Self;
    const None: Self;
}
Expand description

Delimiter API trait. See proc_macro::Delimiter.

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

See also DelimiterExt.

Required Associated Constants§

Source

const Parenthesis: Self

proc_macro*::Delimiter::Parenthesis (())

Source

const Brace: Self

proc_macro*::Delimiter::Brace {}

Source

const Bracket: Self

proc_macro*::Delimiter::Bracket []

Source

const None: Self

proc_macro*::Delimiter::None (No delimiter)

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 Delimiter for Delimiter

Available on crate feature proc-macro only.
Source§

const Parenthesis: Self = Self::Parenthesis

Source§

const Brace: Self = Self::Brace

Source§

const Bracket: Self = Self::Bracket

Source§

const None: Self = Self::None

Source§

impl Delimiter for Delimiter

Available on crate feature proc-macro2 only.
Source§

const Parenthesis: Self = Self::Parenthesis

Source§

const Brace: Self = Self::Brace

Source§

const Bracket: Self = Self::Bracket

Source§

const None: Self = Self::None

Implementors§