pub enum TokenKind {
Show 14 variants
Whitespace,
LineComment,
Bare,
String(String),
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
Comma,
Dot,
ForwardArrow,
BidirectionalArrow,
Association,
End,
}Expand description
Lexical category in a lossless Stack document.
Variants§
Whitespace
One or more spaces, tabs, LF line endings, or CRLF line endings.
LineComment
A // comment without its following line ending.
Bare
An identifier, contextual keyword, integer, or unknown bare token.
String(String)
A source string and its decoded value.
LeftBrace
{.
RightBrace
}.
LeftBracket
[.
RightBracket
].
Comma
,.
Dot
..
ForwardArrow
->.
BidirectionalArrow
<->.
Association
--.
End
The zero-width end of the source.
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