pub enum SelectionRestStatement {
Statement(Box<Statement>),
Else(Box<Statement>, Box<Statement>),
}Expand description
Selection rest statement.
Variants§
Statement(Box<Statement>)
Body of the if.
Else(Box<Statement>, Box<Statement>)
The first argument is the body of the if, the rest is the next statement.
Trait Implementations§
Source§impl Clone for SelectionRestStatement
impl Clone for SelectionRestStatement
Source§fn clone(&self) -> SelectionRestStatement
fn clone(&self) -> SelectionRestStatement
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 SelectionRestStatement
impl Debug for SelectionRestStatement
Source§impl Host for SelectionRestStatement
impl Host for SelectionRestStatement
Source§impl HostMut for SelectionRestStatement
impl HostMut for SelectionRestStatement
Source§fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
Visit an AST node.
Source§impl PartialEq for SelectionRestStatement
impl PartialEq for SelectionRestStatement
impl StructuralPartialEq for SelectionRestStatement
Auto Trait Implementations§
impl Freeze for SelectionRestStatement
impl RefUnwindSafe for SelectionRestStatement
impl Send for SelectionRestStatement
impl Sync for SelectionRestStatement
impl Unpin for SelectionRestStatement
impl UnwindSafe for SelectionRestStatement
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