pub enum SyntaxKind {
Show 30 variants
AT,
L_BRACE,
R_BRACE,
L_PAREN,
R_PAREN,
COMMA,
EQ,
HASH,
QUOTE,
PERCENT,
WORD,
NUMBER,
WHITESPACE,
NEWLINE,
ERROR,
COMMENT,
JUNK,
ENTRY,
STRING_ENTRY,
PREAMBLE_ENTRY,
COMMENT_ENTRY,
ENTRY_TYPE,
KEY,
FIELD,
FIELD_NAME,
VALUE,
BRACE_GROUP,
QUOTED,
LITERAL,
ROOT,
// some variants omitted
}Expand description
Kinds of tokens (terminals, from the lexer) and nodes (composites, from the parser) in the BibTeX 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§
AT
L_BRACE
R_BRACE
L_PAREN
R_PAREN
COMMA
EQ
HASH
QUOTE
PERCENT
WORD
NUMBER
WHITESPACE
NEWLINE
ERROR
COMMENT
JUNK
ENTRY
STRING_ENTRY
PREAMBLE_ENTRY
COMMENT_ENTRY
ENTRY_TYPE
KEY
FIELD
FIELD_NAME
VALUE
BRACE_GROUP
QUOTED
LITERAL
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