Struct brush_parser::ast::ElseClause
source · pub struct ElseClause {
pub condition: Option<CompoundList>,
pub body: CompoundList,
}Expand description
Represents the else clause of a conditional command.
Fields§
§condition: Option<CompoundList>If present, the condition that must be met for this else clause to be executed.
body: CompoundListThe commands to execute if this else clause is selected.
Trait Implementations§
source§impl Clone for ElseClause
impl Clone for ElseClause
source§fn clone(&self) -> ElseClause
fn clone(&self) -> ElseClause
Returns a copy 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 ElseClause
impl Debug for ElseClause
Auto Trait Implementations§
impl Freeze for ElseClause
impl RefUnwindSafe for ElseClause
impl Send for ElseClause
impl Sync for ElseClause
impl Unpin for ElseClause
impl UnwindSafe for ElseClause
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