pub(super) enum TokenKind {
OpenBrace,
CloseBrace,
OpenBracket,
CloseBracket,
Colon,
Comma,
String(Option<String>),
Identifier(String),
Number,
Whitespace,
LineComment,
BlockComment,
}Variants§
OpenBrace
CloseBrace
OpenBracket
CloseBracket
Colon
Comma
String(Option<String>)
A quoted string and its decoded text. None when the text holds a lone
surrogate, which a Rust string cannot.
Identifier(String)
An identifier name and its decoded text.
Number
Whitespace
LineComment
BlockComment
Implementations§
Trait Implementations§
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.