pub enum RubySyntaxKind {
Show 110 variants
Identifier,
IntegerLiteral,
FloatLiteral,
StringLiteral,
Symbol,
RegexLiteral,
If,
Unless,
Elsif,
Else,
Case,
When,
Then,
For,
While,
Until,
Break,
Next,
Redo,
Retry,
Return,
Yield,
Def,
Class,
Module,
End,
Lambda,
Proc,
Begin,
Rescue,
Ensure,
Raise,
Require,
Load,
Include,
Extend,
Prepend,
And,
Or,
Not,
In,
True,
False,
Nil,
Super,
Self_,
Alias,
Undef,
Defined,
Do,
Plus,
Minus,
Multiply,
Divide,
Modulo,
Power,
EqualEqual,
NotEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
EqualEqualEqual,
Spaceship,
Assign,
PlusAssign,
MinusAssign,
MultiplyAssign,
DivideAssign,
ModuloAssign,
PowerAssign,
BitAnd,
BitOr,
Xor,
LogicalNot,
Tilde,
LeftShift,
RightShift,
AndAssign,
OrAssign,
XorAssign,
LeftShiftAssign,
RightShiftAssign,
AndAnd,
OrOr,
OrOrAssign,
AndAndAssign,
Question,
DotDot,
DotDotDot,
Match,
NotMatch,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
Comma,
Colon,
Semicolon,
Dot,
DoubleColon,
At,
Dollar,
Whitespace,
Newline,
Comment,
Eof,
Invalid,
}Expand description
Ruby 令牌种类
Variants§
Identifier
IntegerLiteral
FloatLiteral
StringLiteral
Symbol
RegexLiteral
If
Unless
Elsif
Else
Case
When
Then
For
While
Until
Break
Next
Redo
Retry
Return
Yield
Def
Class
Module
End
Lambda
Proc
Begin
Rescue
Ensure
Raise
Require
Load
Include
Extend
Prepend
And
Or
Not
In
True
False
Nil
Super
Self_
Alias
Undef
Defined
Do
Plus
Minus
Multiply
Divide
Modulo
Power
EqualEqual
NotEqual
Less
Greater
LessEqual
GreaterEqual
EqualEqualEqual
Spaceship
Assign
PlusAssign
MinusAssign
MultiplyAssign
DivideAssign
ModuloAssign
PowerAssign
BitAnd
BitOr
Xor
LogicalNot
Tilde
LeftShift
RightShift
AndAssign
OrAssign
XorAssign
LeftShiftAssign
RightShiftAssign
AndAnd
OrOr
OrOrAssign
AndAndAssign
Question
DotDot
DotDotDot
Match
NotMatch
LeftParen
RightParen
LeftBracket
RightBracket
LeftBrace
RightBrace
Comma
Colon
Semicolon
Dot
DoubleColon
At
Dollar
Whitespace
Newline
Comment
Eof
Invalid
Trait Implementations§
Source§impl Clone for RubySyntaxKind
impl Clone for RubySyntaxKind
Source§fn clone(&self) -> RubySyntaxKind
fn clone(&self) -> RubySyntaxKind
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 RubySyntaxKind
impl Debug for RubySyntaxKind
Source§impl Display for RubySyntaxKind
impl Display for RubySyntaxKind
Source§impl PartialEq for RubySyntaxKind
impl PartialEq for RubySyntaxKind
Source§impl Serialize for RubySyntaxKind
impl Serialize for RubySyntaxKind
Source§impl SyntaxKind for RubySyntaxKind
impl SyntaxKind for RubySyntaxKind
Source§fn is_trivia(&self) -> bool
fn is_trivia(&self) -> bool
Returns true if this kind represents trivia (whitespace, comments, etc.). Read more
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this kind represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this kind represents whitespace.
Source§fn is_token_type(&self) -> bool
fn is_token_type(&self) -> bool
Returns true if this kind represents a token type. Read more
Source§fn is_element_type(&self) -> bool
fn is_element_type(&self) -> bool
Returns true if this kind represents an element type. Read more
impl Copy for RubySyntaxKind
impl Eq for RubySyntaxKind
impl StructuralPartialEq for RubySyntaxKind
Auto Trait Implementations§
impl Freeze for RubySyntaxKind
impl RefUnwindSafe for RubySyntaxKind
impl Send for RubySyntaxKind
impl Sync for RubySyntaxKind
impl Unpin for RubySyntaxKind
impl UnwindSafe for RubySyntaxKind
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