Enum cfg_expr::expr::lexer::Token [−][src]
pub enum Token<'a> { Key(&'a str), Value(&'a str), Equals, All, Any, Not, OpenParen, CloseParen, Comma, }
Expand description
A single token in a cfg expression https://doc.rust-lang.org/reference/conditional-compilation.html
Variants
A single contiguous term
Tuple Fields of Key
0: &'a str
A single continguous value, without its surrounding quotes
Tuple Fields of Value
0: &'a str
A ‘=’, joining a key and a value
Beginning of an all() predicate list
Beginning of an any() predicate list
Beginning of a not() predicate
A (
for starting a predicate list
A )
for ending a predicate list
A ,
for separating predicates in a predicate list
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Token<'a>
impl<'a> UnwindSafe for Token<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more