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 contiguous 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§
source§impl<'a> PartialEq for Token<'a>
impl<'a> PartialEq for Token<'a>
impl<'a> Eq for Token<'a>
impl<'a> StructuralPartialEq for Token<'a>
Auto Trait Implementations§
impl<'a> Freeze for Token<'a>
impl<'a> RefUnwindSafe for Token<'a>
impl<'a> Send for Token<'a>
impl<'a> Sync for Token<'a>
impl<'a> Unpin for Token<'a>
impl<'a> UnwindSafe for Token<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more