pub enum Token {
Term(String),
Eq,
Open,
Close,
Eof,
}Expand description
A single token produced by the structprop lexer.
Variants§
Term(String)
A bare or double-quoted string term.
Bare terms are delimited by whitespace or the special characters
=, {, }, and #. Quoted terms may contain any character
except an unescaped ".
Eq
The assignment operator =.
Open
An opening brace { that begins an array or object body.
Close
A closing brace } that ends an array or object body.
Eof
A sentinel placed at the end of the token stream.
Trait Implementations§
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.