pub enum DelphiElementType {
Show 87 variants
Root,
Identifier,
String,
Number,
Float,
Whitespace,
Newline,
Program,
Unit,
Interface,
Implementation,
Uses,
Type,
Var,
Const,
Function,
Procedure,
Begin,
End,
If,
Then,
Else,
While,
Do,
For,
To,
Downto,
Repeat,
Until,
Case,
Of,
With,
Try,
Except,
Finally,
Raise,
Class,
Object,
Record,
Array,
Set,
File,
Packed,
String_,
Integer,
Real,
Boolean,
Char,
Pointer,
Nil,
True_,
False_,
And_,
Or_,
Not_,
Div,
Mod,
In_,
Is_,
As_,
Plus,
Minus,
Star,
Slash,
Equal,
NotEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
Assign,
Dot,
DotDot,
Caret,
At,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
Semicolon,
Comma,
Colon,
Comment,
LineComment,
BlockComment,
Error,
Eof,
}Variants§
Root
Identifier
String
Number
Float
Whitespace
Newline
Program
Unit
Interface
Implementation
Uses
Type
Var
Const
Function
Procedure
Begin
End
If
Then
Else
While
Do
For
To
Downto
Repeat
Until
Case
Of
With
Try
Except
Finally
Raise
Class
Object
Record
Array
Set
File
Packed
String_
Integer
Real
Boolean
Char
Pointer
Nil
True_
False_
And_
Or_
Not_
Div
Mod
In_
Is_
As_
Plus
Minus
Star
Slash
Equal
NotEqual
Less
Greater
LessEqual
GreaterEqual
Assign
Dot
DotDot
Caret
At
LeftParen
RightParen
LeftBracket
RightBracket
Semicolon
Comma
Colon
Comment
LineComment
BlockComment
Error
Eof
Implementations§
Source§impl DelphiElementType
impl DelphiElementType
Sourcepub fn is_keyword(&self) -> bool
pub fn is_keyword(&self) -> bool
Returns true if this syntax kind is a Delphi keyword
Trait Implementations§
Source§impl Clone for DelphiElementType
impl Clone for DelphiElementType
Source§fn clone(&self) -> DelphiElementType
fn clone(&self) -> DelphiElementType
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 DelphiElementType
impl Debug for DelphiElementType
Source§impl<'de> Deserialize<'de> for DelphiElementType
impl<'de> Deserialize<'de> for DelphiElementType
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 DelphiElementType
impl ElementType for DelphiElementType
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<DelphiElementType> for DelphiTokenType
impl From<DelphiElementType> for DelphiTokenType
Source§fn from(element: DelphiElementType) -> Self
fn from(element: DelphiElementType) -> Self
Converts to this type from the input type.
Source§impl From<DelphiTokenType> for DelphiElementType
impl From<DelphiTokenType> for DelphiElementType
Source§fn from(token: DelphiTokenType) -> Self
fn from(token: DelphiTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for DelphiElementType
impl Hash for DelphiElementType
Source§impl PartialEq for DelphiElementType
impl PartialEq for DelphiElementType
Source§impl Serialize for DelphiElementType
impl Serialize for DelphiElementType
impl Copy for DelphiElementType
impl Eq for DelphiElementType
impl StructuralPartialEq for DelphiElementType
Auto Trait Implementations§
impl Freeze for DelphiElementType
impl RefUnwindSafe for DelphiElementType
impl Send for DelphiElementType
impl Sync for DelphiElementType
impl Unpin for DelphiElementType
impl UnwindSafe for DelphiElementType
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