Enum debian_control::relations::SyntaxKind
source · #[repr(u16)]pub enum SyntaxKind {
Show 26 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,
COMMENT = 13,
DOLLAR = 14,
L_CURLY = 15,
R_CURLY = 16,
ERROR = 17,
ROOT = 18,
ENTRY = 19,
RELATION = 20,
VERSION = 21,
CONSTRAINT = 22,
ARCHITECTURES = 23,
PROFILES = 24,
SUBSTVAR = 25,
}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
COMMENT = 13
DOLLAR = 14
L_CURLY = 15
R_CURLY = 16
ERROR = 17
ROOT = 18
ENTRY = 19
RELATION = 20
VERSION = 21
CONSTRAINT = 22
ARCHITECTURES = 23
PROFILES = 24
SUBSTVAR = 25
Trait Implementations§
source§impl Clone for SyntaxKind
impl Clone for SyntaxKind
source§fn clone(&self) -> SyntaxKind
fn clone(&self) -> SyntaxKind
Returns a copy 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
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§fn eq(&self, other: &SyntaxKind) -> bool
fn eq(&self, other: &SyntaxKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for SyntaxKind
impl PartialOrd for SyntaxKind
source§fn partial_cmp(&self, other: &SyntaxKind) -> Option<Ordering>
fn partial_cmp(&self, other: &SyntaxKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for SyntaxKind
impl Eq for SyntaxKind
impl StructuralEq for SyntaxKind
impl StructuralPartialEq for SyntaxKind
Auto Trait Implementations§
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