pub enum PerlElementType {
Show 30 variants
Root,
Program,
Statement,
Expression,
Block,
SubroutineDeclaration,
PackageDeclaration,
UseStatement,
VariableDeclaration,
Assignment,
FunctionCall,
MethodCall,
ArrayAccess,
HashAccess,
Reference,
Dereference,
ConditionalExpression,
LoopStatement,
IfStatement,
UnlessStatement,
WhileStatement,
UntilStatement,
ForStatement,
ForeachStatement,
DoStatement,
EvalStatement,
RegexMatch,
RegexSubstitution,
RegexTransliteration,
Error,
}Expand description
Element type for the Perl language.
Variants§
Root
Root node.
Program
Program.
Statement
Statement.
Expression
Expression.
Block
Block.
SubroutineDeclaration
Subroutine declaration.
PackageDeclaration
Package declaration.
UseStatement
Use statement.
VariableDeclaration
Variable declaration.
Assignment
Assignment.
FunctionCall
Function call.
MethodCall
Method call.
ArrayAccess
Array access.
HashAccess
Hash access.
Reference
Reference.
Dereference
Dereference.
ConditionalExpression
Conditional expression.
LoopStatement
Loop statement.
IfStatement
If statement.
UnlessStatement
Unless statement.
WhileStatement
While statement.
UntilStatement
Until statement.
ForStatement
For statement.
ForeachStatement
Foreach statement.
DoStatement
Do statement.
EvalStatement
Eval statement.
RegexMatch
Regex match.
RegexSubstitution
Regex substitution.
RegexTransliteration
Regex transliteration.
Error
Error.
Implementations§
Trait Implementations§
Source§impl Clone for PerlElementType
impl Clone for PerlElementType
Source§fn clone(&self) -> PerlElementType
fn clone(&self) -> PerlElementType
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 PerlElementType
impl Debug for PerlElementType
Source§impl<'de> Deserialize<'de> for PerlElementType
impl<'de> Deserialize<'de> for PerlElementType
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 PerlElementType
impl ElementType for PerlElementType
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<PerlTokenType> for PerlElementType
impl From<PerlTokenType> for PerlElementType
Source§fn from(token: PerlTokenType) -> Self
fn from(token: PerlTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for PerlElementType
impl Hash for PerlElementType
Source§impl PartialEq for PerlElementType
impl PartialEq for PerlElementType
Source§impl Serialize for PerlElementType
impl Serialize for PerlElementType
impl Copy for PerlElementType
impl Eq for PerlElementType
impl StructuralPartialEq for PerlElementType
Auto Trait Implementations§
impl Freeze for PerlElementType
impl RefUnwindSafe for PerlElementType
impl Send for PerlElementType
impl Sync for PerlElementType
impl Unpin for PerlElementType
impl UnsafeUnpin for PerlElementType
impl UnwindSafe for PerlElementType
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