pub enum SyntaxKind {
Show 44 variants
CONTROL_WORD,
CONTROL_SYMBOL,
L_BRACE,
R_BRACE,
L_BRACKET,
R_BRACKET,
DOLLAR,
AMPERSAND,
HASH,
CARET,
UNDERSCORE,
TILDE,
COMMENT,
WHITESPACE,
NEWLINE,
WORD,
VERB,
VERBATIM_BODY,
DOC_MARGIN,
GUARD,
ERROR,
GROUP,
OPTIONAL,
ARGUMENT,
COMMAND,
ENVIRONMENT,
BEGIN,
END,
NAME_GROUP,
CONDITIONAL,
CONDITIONAL_BRANCH,
INLINE_MATH,
DISPLAY_MATH,
MATH,
SCRIPTED,
SUBSCRIPT,
SUPERSCRIPT,
LEFT_RIGHT,
PARAGRAPH,
DOC_COMMENT,
TEXT,
LINE_BREAK,
STATEMENT,
ROOT,
// some variants omitted
}Expand description
Kinds of tokens (terminals, from the lexer) and nodes (composites, from the parser) in the CST.
Token kinds come first, node kinds after; ROOT is kept last so
rowan::Language::kind_from_raw can bounds-check the raw discriminant with
a single comparison. Keep the hidden end marker immediately after ROOT.
Variants§
CONTROL_WORD
CONTROL_SYMBOL
L_BRACE
R_BRACE
L_BRACKET
R_BRACKET
DOLLAR
AMPERSAND
HASH
CARET
UNDERSCORE
TILDE
COMMENT
WHITESPACE
NEWLINE
WORD
VERB
VERBATIM_BODY
DOC_MARGIN
GUARD
ERROR
GROUP
OPTIONAL
ARGUMENT
COMMAND
ENVIRONMENT
BEGIN
END
NAME_GROUP
CONDITIONAL
CONDITIONAL_BRANCH
INLINE_MATH
DISPLAY_MATH
MATH
SCRIPTED
SUBSCRIPT
SUPERSCRIPT
LEFT_RIGHT
PARAGRAPH
DOC_COMMENT
TEXT
LINE_BREAK
STATEMENT
ROOT
Implementations§
Trait Implementations§
Source§impl Clone for SyntaxKind
impl Clone for SyntaxKind
Source§fn clone(&self) -> SyntaxKind
fn clone(&self) -> SyntaxKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
Source§fn cmp(&self, other: &SyntaxKind) -> Ordering
fn cmp(&self, other: &SyntaxKind) -> Ordering
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
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