Enum darklua_core::nodes::Statement
source · pub enum Statement {
Show 13 variants
Assign(AssignStatement),
Do(DoStatement),
Call(FunctionCall),
CompoundAssign(CompoundAssignStatement),
Function(FunctionStatement),
GenericFor(GenericForStatement),
If(IfStatement),
LocalAssign(LocalAssignStatement),
LocalFunction(LocalFunctionStatement),
NumericFor(Box<NumericForStatement>),
Repeat(RepeatStatement),
While(WhileStatement),
TypeDeclaration(TypeDeclarationStatement),
}
Variants§
Assign(AssignStatement)
Do(DoStatement)
Call(FunctionCall)
CompoundAssign(CompoundAssignStatement)
Function(FunctionStatement)
GenericFor(GenericForStatement)
If(IfStatement)
LocalAssign(LocalAssignStatement)
LocalFunction(LocalFunctionStatement)
NumericFor(Box<NumericForStatement>)
Repeat(RepeatStatement)
While(WhileStatement)
TypeDeclaration(TypeDeclarationStatement)
Trait Implementations§
source§impl From<AssignStatement> for Statement
impl From<AssignStatement> for Statement
source§fn from(assign: AssignStatement) -> Statement
fn from(assign: AssignStatement) -> Statement
Converts to this type from the input type.
source§impl From<CompoundAssignStatement> for Statement
impl From<CompoundAssignStatement> for Statement
source§fn from(statement: CompoundAssignStatement) -> Statement
fn from(statement: CompoundAssignStatement) -> Statement
Converts to this type from the input type.
source§impl From<DoStatement> for Statement
impl From<DoStatement> for Statement
source§fn from(do_statement: DoStatement) -> Statement
fn from(do_statement: DoStatement) -> Statement
Converts to this type from the input type.
source§impl From<FunctionCall> for Statement
impl From<FunctionCall> for Statement
source§fn from(call: FunctionCall) -> Statement
fn from(call: FunctionCall) -> Statement
Converts to this type from the input type.
source§impl From<FunctionStatement> for Statement
impl From<FunctionStatement> for Statement
source§fn from(function: FunctionStatement) -> Statement
fn from(function: FunctionStatement) -> Statement
Converts to this type from the input type.
source§impl From<GenericForStatement> for Statement
impl From<GenericForStatement> for Statement
source§fn from(generic_for: GenericForStatement) -> Statement
fn from(generic_for: GenericForStatement) -> Statement
Converts to this type from the input type.
source§impl From<IfStatement> for Statement
impl From<IfStatement> for Statement
source§fn from(if_statement: IfStatement) -> Statement
fn from(if_statement: IfStatement) -> Statement
Converts to this type from the input type.
source§impl From<LocalAssignStatement> for Statement
impl From<LocalAssignStatement> for Statement
source§fn from(assign: LocalAssignStatement) -> Statement
fn from(assign: LocalAssignStatement) -> Statement
Converts to this type from the input type.
source§impl From<LocalFunctionStatement> for Statement
impl From<LocalFunctionStatement> for Statement
source§fn from(function: LocalFunctionStatement) -> Statement
fn from(function: LocalFunctionStatement) -> Statement
Converts to this type from the input type.
source§impl From<NumericForStatement> for Statement
impl From<NumericForStatement> for Statement
source§fn from(numeric_for: NumericForStatement) -> Statement
fn from(numeric_for: NumericForStatement) -> Statement
Converts to this type from the input type.
source§impl From<RepeatStatement> for Statement
impl From<RepeatStatement> for Statement
source§fn from(repeat_statement: RepeatStatement) -> Statement
fn from(repeat_statement: RepeatStatement) -> Statement
Converts to this type from the input type.
source§impl From<TypeDeclarationStatement> for Statement
impl From<TypeDeclarationStatement> for Statement
source§fn from(type_declaration: TypeDeclarationStatement) -> Statement
fn from(type_declaration: TypeDeclarationStatement) -> Statement
Converts to this type from the input type.
source§impl From<WhileStatement> for Statement
impl From<WhileStatement> for Statement
source§fn from(while_statement: WhileStatement) -> Statement
fn from(while_statement: WhileStatement) -> Statement
Converts to this type from the input type.
source§impl PartialEq for Statement
impl PartialEq for Statement
impl Eq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more