pub enum PascalElementType {
Show 16 variants
Root,
Program,
Unit,
Interface,
Implementation,
Initialization,
Finalization,
ConstSection,
TypeSection,
VarSection,
Procedure,
Function,
Block,
Statement,
Expression,
Error,
}Expand description
Element types for Pascal.
Variants§
Root
The root node of the AST.
Program
A program node.
Unit
A unit node.
Interface
An interface section.
Implementation
An implementation section.
Initialization
An initialization section.
Finalization
A finalization section.
ConstSection
A constant declaration section.
TypeSection
A type declaration section.
VarSection
A variable declaration section.
Procedure
A procedure declaration.
Function
A function declaration.
Block
A code block.
Statement
A statement.
Expression
An expression.
Error
An error element.
Trait Implementations§
Source§impl Clone for PascalElementType
impl Clone for PascalElementType
Source§fn clone(&self) -> PascalElementType
fn clone(&self) -> PascalElementType
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 PascalElementType
impl Debug for PascalElementType
Source§impl<'de> Deserialize<'de> for PascalElementType
impl<'de> Deserialize<'de> for PascalElementType
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 PascalElementType
impl ElementType for PascalElementType
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<PascalTokenType> for PascalElementType
impl From<PascalTokenType> for PascalElementType
Source§fn from(token: PascalTokenType) -> Self
fn from(token: PascalTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for PascalElementType
impl Hash for PascalElementType
Source§impl PartialEq for PascalElementType
impl PartialEq for PascalElementType
Source§impl Serialize for PascalElementType
impl Serialize for PascalElementType
impl Copy for PascalElementType
impl Eq for PascalElementType
impl StructuralPartialEq for PascalElementType
Auto Trait Implementations§
impl Freeze for PascalElementType
impl RefUnwindSafe for PascalElementType
impl Send for PascalElementType
impl Sync for PascalElementType
impl Unpin for PascalElementType
impl UnsafeUnpin for PascalElementType
impl UnwindSafe for PascalElementType
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