#[repr(u16)]pub enum SyntaxKind {
Show 23 variants
Root = 0,
KeyValue = 1,
Key = 2,
Value = 3,
Table = 4,
ArrayTable = 5,
Whitespace = 6,
Newline = 7,
Comment = 8,
Bare = 9,
BasicString = 10,
LiteralString = 11,
Equals = 12,
Dot = 13,
Comma = 14,
LeftBracket = 15,
RightBracket = 16,
LeftBrace = 17,
RightBrace = 18,
Array = 19,
InlineTable = 20,
Bom = 21,
Invalid = 22,
}Expand description
A lossless syntax node or token category.
Variants§
Root = 0
The complete document node.
KeyValue = 1
A key-value statement node.
Key = 2
A dotted key node.
Value = 3
A scalar or container value node.
Table = 4
A table header node.
ArrayTable = 5
An array-of-tables header node.
Whitespace = 6
Horizontal whitespace token.
Newline = 7
A source newline token.
Comment = 8
A comment token.
Bare = 9
An unquoted token used for bare keys and non-string values.
BasicString = 10
A basic or multiline-basic string token.
LiteralString = 11
A literal or multiline-literal string token.
Equals = 12
The equals-sign token.
Dot = 13
The dotted-key separator token.
Comma = 14
The container item separator token.
LeftBracket = 15
A left square-bracket token.
RightBracket = 16
A right square-bracket token.
LeftBrace = 17
A left brace token.
RightBrace = 18
A right brace token.
Array = 19
An array value node.
InlineTable = 20
An inline-table value node.
Bom = 21
A UTF-8 byte-order mark token at the start of the document.
Invalid = 22
Invalid or otherwise unclassified source bytes.
Trait Implementations§
Source§impl Clone for SyntaxKind
impl Clone for SyntaxKind
impl Copy for SyntaxKind
Source§impl Debug for SyntaxKind
impl Debug for SyntaxKind
impl Eq for SyntaxKind
Source§impl From<SyntaxKind> for SyntaxKind
impl From<SyntaxKind> for SyntaxKind
Source§fn from(kind: SyntaxKind) -> Self
fn from(kind: SyntaxKind) -> Self
Converts to this type from the input type.
Source§impl Hash for SyntaxKind
impl Hash for SyntaxKind
Source§impl Ord for SyntaxKind
impl Ord for SyntaxKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SyntaxKind
impl PartialEq for SyntaxKind
Source§impl PartialOrd for SyntaxKind
impl PartialOrd for SyntaxKind
impl StructuralPartialEq for SyntaxKind
Auto Trait Implementations§
impl Freeze for SyntaxKind
impl RefUnwindSafe for SyntaxKind
impl Send for SyntaxKind
impl Sync for SyntaxKind
impl Unpin for SyntaxKind
impl UnsafeUnpin for SyntaxKind
impl UnwindSafe for SyntaxKind
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