#[repr(u16)]pub enum JsonSyntaxKind {
Show 34 variants
EOF,
UNICODE_BOM,
COLON,
COMMA,
L_PAREN,
R_PAREN,
L_CURLY,
R_CURLY,
L_BRACK,
R_BRACK,
NULL_KW,
TRUE_KW,
FALSE_KW,
JSON_STRING_LITERAL,
JSON_NUMBER_LITERAL,
ERROR_TOKEN,
NEWLINE,
WHITESPACE,
IDENT,
COMMENT,
MULTILINE_COMMENT,
JSON_ROOT,
JSON_NUMBER_VALUE,
JSON_STRING_VALUE,
JSON_BOOLEAN_VALUE,
JSON_NULL_VALUE,
JSON_ARRAY_VALUE,
JSON_OBJECT_VALUE,
JSON_MEMBER_LIST,
JSON_MEMBER,
JSON_MEMBER_NAME,
JSON_ARRAY_ELEMENT_LIST,
JSON_BOGUS,
JSON_BOGUS_VALUE,
// some variants omitted
}Expand description
The kind of syntax node, e.g. IDENT, FUNCTION_KW, or FOR_STMT.
Variants§
EOF
Marks the end of the file. May have trivia attached
UNICODE_BOM
Any Unicode BOM character that may be present at the start of a file.
COLON
COMMA
L_PAREN
R_PAREN
L_CURLY
R_CURLY
L_BRACK
R_BRACK
NULL_KW
TRUE_KW
FALSE_KW
JSON_STRING_LITERAL
JSON_NUMBER_LITERAL
ERROR_TOKEN
NEWLINE
WHITESPACE
IDENT
COMMENT
MULTILINE_COMMENT
JSON_ROOT
JSON_NUMBER_VALUE
JSON_STRING_VALUE
JSON_BOOLEAN_VALUE
JSON_NULL_VALUE
JSON_ARRAY_VALUE
JSON_OBJECT_VALUE
JSON_MEMBER_LIST
JSON_MEMBER
JSON_MEMBER_NAME
JSON_ARRAY_ELEMENT_LIST
JSON_BOGUS
JSON_BOGUS_VALUE
Implementations§
source§impl JsonSyntaxKind
impl JsonSyntaxKind
pub fn is_trivia(self) -> bool
pub fn is_comments(self) -> bool
pub const fn is_keyword(self) -> bool
Trait Implementations§
source§impl Clone for JsonSyntaxKind
impl Clone for JsonSyntaxKind
source§fn clone(&self) -> JsonSyntaxKind
fn clone(&self) -> JsonSyntaxKind
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 JsonSyntaxKind
impl Debug for JsonSyntaxKind
source§impl From<JsonSyntaxKind> for u16
impl From<JsonSyntaxKind> for u16
source§fn from(k: JsonSyntaxKind) -> u16
fn from(k: JsonSyntaxKind) -> u16
Converts to this type from the input type.
source§impl From<u16> for JsonSyntaxKind
impl From<u16> for JsonSyntaxKind
source§fn from(d: u16) -> JsonSyntaxKind
fn from(d: u16) -> JsonSyntaxKind
Converts to this type from the input type.
source§impl Hash for JsonSyntaxKind
impl Hash for JsonSyntaxKind
source§impl Ord for JsonSyntaxKind
impl Ord for JsonSyntaxKind
source§fn cmp(&self, other: &JsonSyntaxKind) -> Ordering
fn cmp(&self, other: &JsonSyntaxKind) -> 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 JsonSyntaxKind
impl PartialEq for JsonSyntaxKind
source§fn eq(&self, other: &JsonSyntaxKind) -> bool
fn eq(&self, other: &JsonSyntaxKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for JsonSyntaxKind
impl PartialOrd for JsonSyntaxKind
source§fn partial_cmp(&self, other: &JsonSyntaxKind) -> Option<Ordering>
fn partial_cmp(&self, other: &JsonSyntaxKind) -> 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 moresource§impl SyntaxKind for JsonSyntaxKind
impl SyntaxKind for JsonSyntaxKind
source§impl TryFrom<JsonSyntaxKind> for TriviaPieceKind
impl TryFrom<JsonSyntaxKind> for TriviaPieceKind
impl Copy for JsonSyntaxKind
impl Eq for JsonSyntaxKind
impl StructuralPartialEq for JsonSyntaxKind
Auto Trait Implementations§
impl Freeze for JsonSyntaxKind
impl RefUnwindSafe for JsonSyntaxKind
impl Send for JsonSyntaxKind
impl Sync for JsonSyntaxKind
impl Unpin for JsonSyntaxKind
impl UnwindSafe for JsonSyntaxKind
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