Skip to main content

Delimiter

Type Alias Delimiter 

Source
#[doc(hidden)]
pub type Delimiter = Delimiter;

Aliased Type§

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

Variants§

§

Parenthesis

( ... )

§

Brace

{ ... }

§

Bracket

[ ... ]

§

None

Ø ... Ø

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.