pub struct IfClauseCommand {
pub condition: CompoundList,
pub then: CompoundList,
pub elses: Option<Vec<ElseClause>>,
pub loc: TokenLocation,
}Expand description
An if clause, which conditionally executes a command.
Fields§
§condition: CompoundListThe command whose execution result is inspected.
then: CompoundListThe command to execute if the condition is true.
elses: Option<Vec<ElseClause>>Optionally, else clauses that will be evaluated if the condition is false.
loc: TokenLocationLocation of the if clause
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
Source§impl Display for IfClauseCommand
impl Display for IfClauseCommand
Source§impl SourceLocation for IfClauseCommand
impl SourceLocation for IfClauseCommand
Source§fn location(&self) -> Option<TokenLocation>
fn location(&self) -> Option<TokenLocation>
The location of the syntax item, when known
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