Enum proc_macro2::Delimiter[][src]

pub enum Delimiter {
    Parenthesis,
    Brace,
    Bracket,
    None,
}

Describes how a sequence of token trees is delimited.

Variants

( ... )

{ ... }

[ ... ]

Ø ... Ø

An implicit delimiter, that may, for example, appear around tokens coming from a "macro variable" $var. It is important to preserve operator priorities in cases like $var * 3 where $var is 1 + 2. Implicit delimiters may not survive roundtrip of a token stream through a string.

Trait Implementations

impl Copy for Delimiter
[src]

impl Clone for Delimiter
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Delimiter
[src]

Formats the value using the given formatter. Read more

impl Eq for Delimiter
[src]

impl PartialEq for Delimiter
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Delimiter

impl Sync for Delimiter