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
Key(&'a str)
A single contiguous term
Value(&'a str)
A single continguous value, without its surrounding quotes
Equals
A ‘=’, joining a key and a value
All
Beginning of an all() predicate list
Any
Beginning of an any() predicate list
Not
Beginning of a not() predicate
OpenParen
A (
for starting a predicate list
CloseParen
A )
for ending a predicate list
Comma
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