#[repr(u16)]pub enum SyntaxKind {
Show 27 variants
IDENT = 0,
COLON = 1,
PIPE = 2,
COMMA = 3,
L_PARENS = 4,
R_PARENS = 5,
L_BRACKET = 6,
R_BRACKET = 7,
NOT = 8,
L_ANGLE = 9,
R_ANGLE = 10,
EQUAL = 11,
WHITESPACE = 12,
NEWLINE = 13,
DOLLAR = 14,
L_CURLY = 15,
R_CURLY = 16,
ERROR = 17,
ROOT = 18,
ENTRY = 19,
RELATION = 20,
ARCHQUAL = 21,
VERSION = 22,
CONSTRAINT = 23,
ARCHITECTURES = 24,
PROFILES = 25,
SUBSTVAR = 26,
}
Expand description
Let’s start with defining all kinds of tokens and composite nodes.
Variants§
IDENT = 0
COLON = 1
PIPE = 2
COMMA = 3
L_PARENS = 4
R_PARENS = 5
L_BRACKET = 6
R_BRACKET = 7
NOT = 8
L_ANGLE = 9
R_ANGLE = 10
EQUAL = 11
WHITESPACE = 12
NEWLINE = 13
DOLLAR = 14
L_CURLY = 15
R_CURLY = 16
ERROR = 17
ROOT = 18
ENTRY = 19
RELATION = 20
ARCHQUAL = 21
VERSION = 22
CONSTRAINT = 23
ARCHITECTURES = 24
PROFILES = 25
SUBSTVAR = 26
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SyntaxKind
impl Debug for SyntaxKind
Source§impl From<SyntaxKind> for SyntaxKind
Convert our SyntaxKind
into the rowan SyntaxKind
.
impl From<SyntaxKind> for SyntaxKind
Convert our SyntaxKind
into the rowan 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 · 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 Copy for SyntaxKind
impl Eq 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 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