Enum brain::Statement
[−]
[src]
pub enum Statement { Comment(String), Output(Vec<Expression>), Input { name: String, slice: Option<Slice>, }, Declaration { name: String, slice: Option<Slice>, expr: Expression, }, WhileLoop { condition: WhileCondition, body: Vec<Statement>, }, }
Variants
Comment(String)
Output(Vec<Expression>)
Input
Fields of Input
name: String | |
slice: Option<Slice> |
Declaration
Fields of Declaration
name: String | |
slice: Option<Slice> | |
expr: Expression |
WhileLoop
Fields of WhileLoop
condition: WhileCondition | |
body: Vec<Statement> |
Trait Implementations
impl Debug for Statement
[src]
impl PartialEq for Statement
[src]
fn eq(&self, __arg_0: &Statement) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Statement) -> bool
This method tests for !=
.
impl Clone for Statement
[src]
fn clone(&self) -> Statement
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more