pub enum Statement {
Show 18 variants ArrayAssignment(ArrayAssignmentSpan), Assignment(AssignmentSpan), BuiltinCall(BuiltinCallSpan), Data(DataSpan), Dim(DimSpan), DimArray(DimArraySpan), Do(DoSpan), End(EndSpan), ExitDo(ExitDoSpan), For(ForSpan), Gosub(GotoSpan), Goto(GotoSpan), If(IfSpan), Label(LabelSpan), OnError(OnErrorSpan), Return(ReturnSpan), Select(SelectSpan), While(WhileSpan),
}
Expand description

Represents a statement in the program along all data to execute it.

Variants§

§

ArrayAssignment(ArrayAssignmentSpan)

Represents an assignment to an element of an array.

§

Assignment(AssignmentSpan)

Represents a variable assignment.

§

BuiltinCall(BuiltinCallSpan)

Represents a call to a builtin command such as PRINT.

§

Data(DataSpan)

Represents a DATA statement.

§

Dim(DimSpan)

Represents a variable definition.

§

DimArray(DimArraySpan)

Represents an array definition.

§

Do(DoSpan)

Represents a DO statement.

§

End(EndSpan)

Represents an END statement.

§

ExitDo(ExitDoSpan)

Represents an EXIT DO statement.

§

For(ForSpan)

Represents a FOR statement.

§

Gosub(GotoSpan)

Represents a GOSUB statement.

§

Goto(GotoSpan)

Represents a GOTO statement.

§

If(IfSpan)

Represents an IF statement.

§

Label(LabelSpan)

Represents a label “statement”.

§

OnError(OnErrorSpan)

Represents an ON ERROR statement.

§

Return(ReturnSpan)

Represents a RETURN statement.

§

Select(SelectSpan)

Represents a SELECT statement.

§

While(WhileSpan)

Represents a WHILE statement.

Trait Implementations§

Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.