pub struct IfClauseCommand {
pub condition: CompoundList,
pub then: CompoundList,
pub elses: Option<Vec<ElseClause>>,
}
Expand description
An if clause, which conditionally executes a command.
Fields§
§condition: CompoundList
The command whose execution result is inspected.
then: CompoundList
The command to execute if the condition is true.
elses: Option<Vec<ElseClause>>
Optionally, else
clauses that will be evaluated if the condition is false.
Trait Implementations§
Source§impl Clone for IfClauseCommand
impl Clone for IfClauseCommand
Source§fn clone(&self) -> IfClauseCommand
fn clone(&self) -> IfClauseCommand
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 IfClauseCommand
impl Debug for IfClauseCommand
Auto Trait Implementations§
impl Freeze for IfClauseCommand
impl RefUnwindSafe for IfClauseCommand
impl Send for IfClauseCommand
impl Sync for IfClauseCommand
impl Unpin for IfClauseCommand
impl UnwindSafe for IfClauseCommand
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