#[repr(u8)]pub enum MatlabTokenType {
Show 75 variants
Whitespace = 0,
Newline = 1,
Comment = 2,
BlockComment = 3,
Identifier = 4,
Number = 5,
String = 6,
Character = 7,
Function = 8,
End = 9,
If = 10,
Else = 11,
Elseif = 12,
While = 13,
For = 14,
Break = 15,
Continue = 16,
Return = 17,
Switch = 18,
Case = 19,
Otherwise = 20,
Try = 21,
Catch = 22,
Global = 23,
Persistent = 24,
Classdef = 25,
Properties = 26,
Methods = 27,
Events = 28,
Plus = 29,
Minus = 30,
Times = 31,
Divide = 32,
Power = 33,
LeftDivide = 34,
DotTimes = 35,
DotDivide = 36,
DotPower = 37,
DotLeftDivide = 38,
Equal = 39,
NotEqual = 40,
Less = 41,
Greater = 42,
LessEqual = 43,
GreaterEqual = 44,
And = 45,
Or = 46,
Not = 47,
AndAnd = 48,
OrOr = 49,
Assign = 50,
LeftParen = 51,
RightParen = 52,
LeftBracket = 53,
RightBracket = 54,
LeftBrace = 55,
RightBrace = 56,
Semicolon = 57,
Comma = 58,
Dot = 59,
Colon = 60,
Question = 61,
At = 62,
Transpose = 63,
DotTranspose = 64,
Operator = 65,
Delimiter = 66,
Error = 67,
Script = 68,
FunctionDef = 69,
ClassDef = 70,
Block = 71,
Expression = 72,
Statement = 73,
Eof = 74,
}Variants§
Whitespace = 0
Newline = 1
Comment = 2
BlockComment = 3
Identifier = 4
Number = 5
String = 6
Character = 7
Function = 8
End = 9
If = 10
Else = 11
Elseif = 12
While = 13
For = 14
Break = 15
Continue = 16
Return = 17
Switch = 18
Case = 19
Otherwise = 20
Try = 21
Catch = 22
Global = 23
Persistent = 24
Classdef = 25
Properties = 26
Methods = 27
Events = 28
Plus = 29
Minus = 30
Times = 31
Divide = 32
Power = 33
LeftDivide = 34
DotTimes = 35
DotDivide = 36
DotPower = 37
DotLeftDivide = 38
Equal = 39
NotEqual = 40
Less = 41
Greater = 42
LessEqual = 43
GreaterEqual = 44
And = 45
Or = 46
Not = 47
AndAnd = 48
OrOr = 49
Assign = 50
LeftParen = 51
RightParen = 52
LeftBracket = 53
RightBracket = 54
LeftBrace = 55
RightBrace = 56
Semicolon = 57
Comma = 58
Dot = 59
Colon = 60
Question = 61
At = 62
Transpose = 63
DotTranspose = 64
Operator = 65
Delimiter = 66
Error = 67
Script = 68
FunctionDef = 69
ClassDef = 70
Block = 71
Expression = 72
Statement = 73
Eof = 74
Implementations§
Trait Implementations§
Source§impl Clone for MatlabTokenType
impl Clone for MatlabTokenType
Source§fn clone(&self) -> MatlabTokenType
fn clone(&self) -> MatlabTokenType
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 MatlabTokenType
impl Debug for MatlabTokenType
Source§impl<'de> Deserialize<'de> for MatlabTokenType
impl<'de> Deserialize<'de> for MatlabTokenType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<MatlabTokenType> for MatlabElementType
impl From<MatlabTokenType> for MatlabElementType
Source§fn from(token: MatlabTokenType) -> Self
fn from(token: MatlabTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for MatlabTokenType
impl Hash for MatlabTokenType
Source§impl PartialEq for MatlabTokenType
impl PartialEq for MatlabTokenType
Source§impl Serialize for MatlabTokenType
impl Serialize for MatlabTokenType
Source§impl TokenType for MatlabTokenType
impl TokenType for MatlabTokenType
Source§const END_OF_STREAM: Self = Self::Error
const END_OF_STREAM: Self = Self::Error
A constant representing the end of the input stream. Read more
Source§type Role = UniversalTokenRole
type Role = UniversalTokenRole
The associated role type for this token kind.
Source§fn is_ignored(&self) -> bool
fn is_ignored(&self) -> bool
Returns true if this token represents trivia (whitespace, comments, etc.). Read more
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this token matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalTokenRole) -> bool
fn is_universal(&self, role: UniversalTokenRole) -> bool
Returns true if this token matches the specified universal role.
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this token represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this token represents whitespace. Read more
Source§fn is_error(&self) -> bool
fn is_error(&self) -> bool
Returns true if this token represents an error condition. Read more
Source§fn is_end_of_stream(&self) -> bool
fn is_end_of_stream(&self) -> bool
Returns true if this token represents the end of the input stream. Read more
impl Copy for MatlabTokenType
impl Eq for MatlabTokenType
impl StructuralPartialEq for MatlabTokenType
Auto Trait Implementations§
impl Freeze for MatlabTokenType
impl RefUnwindSafe for MatlabTokenType
impl Send for MatlabTokenType
impl Sync for MatlabTokenType
impl Unpin for MatlabTokenType
impl UnwindSafe for MatlabTokenType
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