#[repr(u16)]pub enum SyntaxKind {
Root = 0,
Record = 1,
Field = 2,
Error = 3,
Name = 4,
Colon = 5,
Value = 6,
Indent = 7,
Dot = 8,
Whitespace = 9,
LineEnding = 10,
ErrorToken = 11,
}Expand description
The kinds of nodes and tokens in an R DCF syntax tree.
Variants§
Root = 0
The document root node.
Record = 1
A record node.
Field = 2
A field node.
Error = 3
A node containing malformed input.
Name = 4
A field-name token.
Colon = 5
The first colon on a field line.
Value = 6
Value text on a physical line.
Indent = 7
Indentation at the start of a continuation line.
Dot = 8
A dot denoting a logical blank continuation line.
Whitespace = 9
Whitespace belonging to a record separator.
LineEnding = 10
An LF, CRLF, or lone CR line ending.
ErrorToken = 11
Text inside an error node.
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 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