Enum proc_macro2::Delimiter [−][src]
pub enum Delimiter {
Parenthesis,
Brace,
Bracket,
None,
}
Expand description
Describes how a sequence of token trees is delimited.
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Delimiter
impl UnwindSafe for Delimiter
Blanket Implementations
Mutably borrows from an owned value. Read more