pub enum TokenKind<'a> {
Show 48 variants
Ident(&'a str),
Int(i64),
Float(f64),
Str(&'a str),
InterpStr(Vec<StrPart<'a>>),
ImportPath {
path: &'a str,
version: &'a str,
},
True,
False,
Null,
Import,
As,
Type,
Enum,
Def,
End,
Domain,
New,
Assert,
Shadow,
Pub,
Cond,
Else,
Newline,
LParen,
RParen,
LBracket,
RBracket,
Colon,
Comma,
Dot,
Assign,
Arrow,
Question,
Plus,
Minus,
Star,
Slash,
Percent,
EqEq,
NotEq,
Lt,
Gt,
LtEq,
GtEq,
And,
Or,
Not,
Eof,
}Expand description
SPEC §2.1. Zero-copy invariant: not a single String - only slices of the source.
Variants§
Ident(&'a str)
Int(i64)
Float(f64)
Str(&'a str)
Content without quotes; escape sequences are raw (lazily unescaped during eval).
InterpStr(Vec<StrPart<'a>>)
ImportPath
github/actions/rust-cache@v1.2 → path=“github/actions/rust-cache”, version=“v1.2”
True
False
Null
Import
As
Type
Enum
Def
End
Domain
New
Assert
Shadow
Pub
Cond
Else
Newline
LParen
RParen
LBracket
RBracket
Colon
Comma
Dot
Assign
Arrow
Question
Plus
Minus
Star
Slash
Percent
EqEq
NotEq
Lt
Gt
LtEq
GtEq
And
Or
Not
Eof
Trait Implementations§
impl<'a> StructuralPartialEq for TokenKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for TokenKind<'a>
impl<'a> RefUnwindSafe for TokenKind<'a>
impl<'a> Send for TokenKind<'a>
impl<'a> Sync for TokenKind<'a>
impl<'a> Unpin for TokenKind<'a>
impl<'a> UnsafeUnpin for TokenKind<'a>
impl<'a> UnwindSafe for TokenKind<'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