[−][src]Enum rnix::SyntaxKind
Variants
TOKEN_COMMENT
TOKEN_ERROR
TOKEN_WHITESPACE
TOKEN_ASSERT
TOKEN_ELSE
TOKEN_IF
TOKEN_IN
TOKEN_INHERIT
TOKEN_LET
TOKEN_REC
TOKEN_THEN
TOKEN_WITH
TOKEN_CURLY_B_OPEN
TOKEN_CURLY_B_CLOSE
TOKEN_SQUARE_B_OPEN
TOKEN_SQUARE_B_CLOSE
TOKEN_ASSIGN
TOKEN_AT
TOKEN_COLON
TOKEN_COMMA
TOKEN_DOT
TOKEN_ELLIPSIS
TOKEN_QUESTION
TOKEN_SEMICOLON
TOKEN_PAREN_OPEN
TOKEN_PAREN_CLOSE
TOKEN_CONCAT
TOKEN_INVERT
TOKEN_UPDATE
TOKEN_ADD
TOKEN_SUB
TOKEN_MUL
TOKEN_DIV
TOKEN_AND
TOKEN_EQUAL
TOKEN_IMPLICATION
TOKEN_LESS
TOKEN_LESS_OR_EQ
TOKEN_MORE
TOKEN_MORE_OR_EQ
TOKEN_NOT_EQUAL
TOKEN_OR
TOKEN_DYNAMIC_END
TOKEN_DYNAMIC_START
TOKEN_FLOAT
TOKEN_IDENT
TOKEN_INTEGER
TOKEN_INTERPOL_END
TOKEN_INTERPOL_START
TOKEN_PATH
TOKEN_URI
TOKEN_STRING_CONTENT
TOKEN_STRING_END
TOKEN_STRING_START
NODE_APPLY
NODE_ASSERT
NODE_KEY
NODE_DYNAMIC
NODE_ERROR
NODE_IDENT
NODE_IF_ELSE
NODE_SELECT
NODE_INHERIT
NODE_INHERIT_FROM
NODE_STRING
NODE_STRING_INTERPOL
NODE_LAMBDA
NODE_LEGACY_LET
NODE_LET_IN
NODE_LIST
NODE_BIN_OP
NODE_OR_DEFAULT
NODE_PAREN
NODE_PATTERN
NODE_PAT_BIND
NODE_PAT_ENTRY
NODE_ROOT
NODE_ATTR_SET
NODE_KEY_VALUE
NODE_UNARY_OP
NODE_LITERAL
NODE_WITH
Methods
impl SyntaxKind
[src]
pub fn is_literal(self) -> bool
[src]
Returns true if this token is a literal, such as an integer or a string
pub fn is_fn_arg(self) -> bool
[src]
Returns true if this token should be used as a function argument.
ⓘThis example is not tested
Example: add 1 2 + 3 ^ ^ ^ ^ | | | +- false | | +- true | +- true +- true
pub fn is_trivia(self) -> bool
[src]
Returns true if this token is a comment, whitespace, or similar, and should be skipped over by the parser.
Trait Implementations
impl Eq for SyntaxKind
[src]
impl Clone for SyntaxKind
[src]
fn clone(&self) -> SyntaxKind
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialOrd<SyntaxKind> for SyntaxKind
[src]
fn partial_cmp(&self, other: &SyntaxKind) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Ord for SyntaxKind
[src]
fn cmp(&self, other: &SyntaxKind) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<SyntaxKind> for SyntaxKind
[src]
fn eq(&self, other: &SyntaxKind) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Copy for SyntaxKind
[src]
impl Hash for SyntaxKind
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Debug for SyntaxKind
[src]
Auto Trait Implementations
impl Send for SyntaxKind
impl Unpin for SyntaxKind
impl Sync for SyntaxKind
impl RefUnwindSafe for SyntaxKind
impl UnwindSafe for SyntaxKind
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,