pub enum PStatement {
Expression(PExpression),
Throw(PExpression),
VariableDeclaration {
name: DeclarationName,
is_const: bool,
typ: Option<CortexType>,
initial_value: PExpression,
},
Assignment {
name: AssignmentName,
value: PExpression,
},
WhileLoop(PConditionBody),
Break,
Continue,
}
Variants§
Expression(PExpression)
Throw(PExpression)
VariableDeclaration
Assignment
WhileLoop(PConditionBody)
Break
Continue
Trait Implementations§
Source§impl Clone for PStatement
impl Clone for PStatement
Source§fn clone(&self) -> PStatement
fn clone(&self) -> PStatement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl SimpleCodeGen for PStatement
impl SimpleCodeGen for PStatement
Auto Trait Implementations§
impl Freeze for PStatement
impl RefUnwindSafe for PStatement
impl Send for PStatement
impl Sync for PStatement
impl Unpin for PStatement
impl UnwindSafe for PStatement
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