Enum moparse::ModelicaToken
source · pub enum ModelicaToken {
Show 93 variants
EOF,
Comma,
Dot,
Semicolon,
Colon,
LParen,
RParen,
LCurly,
RCurly,
LBracket,
RBracket,
Equal,
Assign,
Plus,
Minus,
Star,
Slash,
Flex,
DotPlus,
DotMinus,
DotStar,
DotSlash,
DotFlex,
Gre,
Geq,
Les,
Leq,
Neq,
Eq,
Not,
And,
Or,
In,
For,
If,
Else,
ElseIf,
Then,
When,
ElseWhen,
While,
Loop,
Break,
Return,
Partial,
Class,
Operator,
Expandable,
Model,
Function,
Record,
Type,
Block,
Connector,
Package,
Pure,
Impure,
Initial,
Equation,
Algorithm,
Extends,
Import,
Public,
Protected,
Within,
Final,
Encapsulated,
Enumeration,
Input,
Output,
Redeclare,
Inner,
Outer,
Replaceable,
Constrainedby,
Flow,
Stream,
Discrete,
Parameter,
Constant,
Each,
Annotation,
External,
End,
Der,
Connect,
LineComment,
BlockComment,
Identifier,
String,
UInt,
UReal,
Bool,
}Expand description
Represents a type of a Modelica token. Defined based on [Modelica Specification 3.7]
Variants§
EOF
Comma
Dot
Semicolon
Colon
LParen
RParen
LCurly
RCurly
LBracket
RBracket
Equal
Assign
Plus
Minus
Star
Slash
Flex
DotPlus
DotMinus
DotStar
DotSlash
DotFlex
Gre
Geq
Les
Leq
Neq
Eq
Not
And
Or
In
For
If
Else
ElseIf
Then
When
ElseWhen
While
Loop
Break
Return
Partial
Class
Operator
Expandable
Model
Function
Record
Type
Block
Connector
Package
Pure
Impure
Initial
Equation
Algorithm
Extends
Import
Public
Protected
Within
Final
Encapsulated
Enumeration
Input
Output
Redeclare
Inner
Outer
Replaceable
Constrainedby
Flow
Stream
Discrete
Parameter
Constant
Each
Annotation
External
End
Der
Connect
LineComment
BlockComment
Identifier
String
UInt
UReal
Bool
Trait Implementations§
source§impl Clone for ModelicaToken
impl Clone for ModelicaToken
source§fn clone(&self) -> ModelicaToken
fn clone(&self) -> ModelicaToken
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 ModelicaToken
impl Debug for ModelicaToken
source§impl PartialEq for ModelicaToken
impl PartialEq for ModelicaToken
source§fn eq(&self, other: &ModelicaToken) -> bool
fn eq(&self, other: &ModelicaToken) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ModelicaToken
impl StructuralPartialEq for ModelicaToken
Auto Trait Implementations§
impl RefUnwindSafe for ModelicaToken
impl Send for ModelicaToken
impl Sync for ModelicaToken
impl Unpin for ModelicaToken
impl UnwindSafe for ModelicaToken
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