#[repr(u8)]pub enum MatlabElementType {
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 MatlabElementType
impl Clone for MatlabElementType
Source§fn clone(&self) -> MatlabElementType
fn clone(&self) -> MatlabElementType
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 MatlabElementType
impl Debug for MatlabElementType
Source§impl<'de> Deserialize<'de> for MatlabElementType
impl<'de> Deserialize<'de> for MatlabElementType
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 ElementType for MatlabElementType
impl ElementType for MatlabElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
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 MatlabElementType
impl Hash for MatlabElementType
Source§impl PartialEq for MatlabElementType
impl PartialEq for MatlabElementType
Source§impl Serialize for MatlabElementType
impl Serialize for MatlabElementType
impl Copy for MatlabElementType
impl Eq for MatlabElementType
impl StructuralPartialEq for MatlabElementType
Auto Trait Implementations§
impl Freeze for MatlabElementType
impl RefUnwindSafe for MatlabElementType
impl Send for MatlabElementType
impl Sync for MatlabElementType
impl Unpin for MatlabElementType
impl UnwindSafe for MatlabElementType
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