pub enum SelectionStatement {
If {
condition: Expression,
then_statement: Box<Statement>,
else_statement: Option<Box<Statement>>,
},
Switch {
expression: Expression,
statement: Box<Statement>,
},
}Expand description
Selection statement
Variants§
Trait Implementations§
Source§impl Clone for SelectionStatement
impl Clone for SelectionStatement
Source§fn clone(&self) -> SelectionStatement
fn clone(&self) -> SelectionStatement
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 Debug for SelectionStatement
impl Debug for SelectionStatement
Source§impl PartialEq for SelectionStatement
impl PartialEq for SelectionStatement
impl StructuralPartialEq for SelectionStatement
Auto Trait Implementations§
impl Freeze for SelectionStatement
impl RefUnwindSafe for SelectionStatement
impl Send for SelectionStatement
impl Sync for SelectionStatement
impl Unpin for SelectionStatement
impl UnwindSafe for SelectionStatement
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