pub enum TokenKind {
Show 89 variants
Pipeline,
Extends,
Override,
Let,
Var,
If,
Else,
For,
In,
Match,
Retry,
Parallel,
ParallelMap,
ParallelSettle,
Return,
Import,
True,
False,
Nil,
Try,
Catch,
Throw,
Finally,
Fn,
Spawn,
While,
TypeKw,
Enum,
Struct,
Interface,
Pub,
From,
Thru,
Upto,
Guard,
Ask,
Deadline,
Yield,
Mutex,
Break,
Continue,
Select,
Impl,
Identifier(String),
StringLiteral(String),
InterpolatedString(Vec<StringSegment>),
IntLiteral(i64),
FloatLiteral(f64),
DurationLiteral(u64),
Eq,
Neq,
And,
Or,
Pipe,
NilCoal,
QuestionDot,
Arrow,
Lte,
Gte,
PlusAssign,
MinusAssign,
StarAssign,
SlashAssign,
PercentAssign,
Assign,
Not,
Dot,
Plus,
Minus,
Star,
Slash,
Percent,
Lt,
Gt,
Question,
Bar,
LBrace,
RBrace,
LParen,
RParen,
LBracket,
RBracket,
Comma,
Colon,
Semicolon,
LineComment(String),
BlockComment(String),
Newline,
Eof,
}Expand description
Token kinds produced by the lexer.
Variants§
Pipeline
Extends
Override
Let
Var
If
Else
For
In
Match
Retry
Parallel
ParallelMap
ParallelSettle
Return
Import
True
False
Nil
Try
Catch
Throw
Finally
Fn
Spawn
While
TypeKw
Enum
Struct
Interface
Pub
From
Thru
Upto
Guard
Ask
Deadline
Yield
Mutex
Break
Continue
Select
Impl
Identifier(String)
StringLiteral(String)
InterpolatedString(Vec<StringSegment>)
IntLiteral(i64)
FloatLiteral(f64)
DurationLiteral(u64)
Duration literal in milliseconds: 500ms, 5s, 30m, 2h
Eq
Neq
And
Or
Pipe
NilCoal
QuestionDot
Arrow
Lte
Gte
PlusAssign
MinusAssign
StarAssign
SlashAssign
PercentAssign
Assign
Not
Dot
Plus
Minus
Star
Slash
Percent
Lt
Gt
Question
Bar
LBrace
RBrace
LParen
RParen
LBracket
RBracket
Comma
Colon
Semicolon
LineComment(String)
BlockComment(String)
Newline
Eof
Trait Implementations§
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