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.
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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