Enum darklua_core::nodes::Statement
source · pub enum Statement {
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),
}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)
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<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<Statement> for Statement
impl PartialEq<Statement> for Statement
impl Eq for Statement
impl StructuralEq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations§
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