Trait proclet::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)

Object Safety§

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§