pub enum TokenKind {
Show 149 variants
Structure,
Blocks,
Commands,
Edit,
Set,
Move,
To,
At,
Before,
After,
Swap,
Append,
With,
Delete,
Cascade,
PreserveChildren,
Prune,
Unreachable,
Where,
DryRun,
Fold,
Depth,
MaxTokens,
PreserveTags,
Link,
Unlink,
Snapshot,
Create,
Restore,
List,
Diff,
Begin,
Transaction,
Commit,
Rollback,
Atomic,
View,
Folded,
From,
Template,
First,
Last,
WriteSection,
BaseLevel,
Goto,
Back,
Expand,
Follow,
Path,
Search,
Find,
Ctx,
Down,
Up,
Semantic,
Mode,
Limit,
MinSimilarity,
Roles,
Tags,
Role,
Tag,
Label,
Pattern,
Max,
Neighborhood,
Add,
Remove,
Clear,
Compress,
Render,
Stats,
Focus,
Results,
Children,
Auto,
Tokens,
MaxAge,
Relevance,
Reason,
Method,
Format,
Truncate,
Summarize,
StructureOnly,
ShortIds,
Markdown,
Full,
Preview,
MetadataToken,
Ids,
Both,
Eq,
Ne,
Gt,
Ge,
Lt,
Le,
PlusEq,
MinusEq,
PlusPlus,
MinusMinus,
And,
Or,
Not,
Contains,
StartsWith,
EndsWith,
Matches,
Exists,
IsNull,
IsNotNull,
IsEmpty,
Length,
DoubleColon,
Colon,
Comma,
Dot,
Hash,
At_,
Dollar,
LBracket,
RBracket,
LBrace,
RBrace,
LParen,
RParen,
TextType,
TableType,
CodeType,
MathType,
MediaType,
JsonType,
BinaryType,
CompositeType,
True,
False,
Null,
BlockId,
Identifier,
Float(f64),
Integer(i64),
DoubleString(String),
SingleString(String),
TripleString(String),
CodeBlock(String),
TableLiteral(String),
Newline,
Comment,
}Expand description
Token kinds
Variants§
Structure
Blocks
Commands
Edit
Set
Move
To
At
Before
After
Swap
Append
With
Delete
Cascade
PreserveChildren
Prune
Unreachable
Where
DryRun
Fold
Depth
MaxTokens
PreserveTags
Link
Unlink
Snapshot
Create
Restore
List
Diff
Begin
Transaction
Commit
Rollback
Atomic
View
Folded
From
Template
First
Last
WriteSection
BaseLevel
Goto
Back
Expand
Follow
Path
Search
Find
Ctx
Down
Up
Semantic
Mode
Limit
MinSimilarity
Roles
Tags
Role
Tag
Label
Pattern
Max
Neighborhood
Add
Remove
Clear
Compress
Render
Stats
Focus
Results
Children
Auto
Tokens
MaxAge
Relevance
Reason
Method
Format
Truncate
Summarize
StructureOnly
ShortIds
Markdown
Full
Preview
MetadataToken
Ids
Both
Eq
Ne
Gt
Ge
Lt
Le
PlusEq
MinusEq
PlusPlus
MinusMinus
And
Or
Not
Contains
StartsWith
EndsWith
Matches
Exists
IsNull
IsNotNull
IsEmpty
Length
DoubleColon
Colon
Comma
Dot
Hash
At_
Dollar
LBracket
RBracket
LBrace
RBrace
LParen
RParen
TextType
TableType
CodeType
MathType
MediaType
JsonType
BinaryType
CompositeType
True
False
Null
BlockId
Identifier
Float(f64)
Integer(i64)
DoubleString(String)
SingleString(String)
TripleString(String)
CodeBlock(String)
TableLiteral(String)
Newline
Comment
Trait Implementations§
Source§impl<'s> Logos<'s> for TokenKind
impl<'s> Logos<'s> for TokenKind
Source§type Error = ()
type Error = ()
Error type returned by the lexer. This can be set using
#[logos(error = MyError)]. Defaults to () if not set.Source§type Extras = ()
type Extras = ()
Associated type
Extras for the particular lexer. This can be set using
#[logos(extras = MyExtras)] and accessed inside callbacks.Source§type Source = str
type Source = str
Source type this token can be lexed from. This will default to
str,
unless one of the defined patterns explicitly uses non-unicode byte values
or byte slices, in which case that implementation will use [u8].Source§fn lex(lex: &mut Lexer<'s, Self>)
fn lex(lex: &mut Lexer<'s, Self>)
The heart of Logos. Called by the
Lexer. The implementation for this function
is generated by the logos-derive crate.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 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