pub struct IfClauseCommand {
pub condition: CompoundList,
pub then: CompoundList,
pub elses: Option<Vec<ElseClause>>,
pub loc: SourceSpan,
}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: SourceSpanLocation of the if clause
Trait Implementations§
Source§impl Clone for IfClauseCommand
impl Clone for IfClauseCommand
Source§impl Debug for IfClauseCommand
impl Debug for IfClauseCommand
Source§impl Display for IfClauseCommand
impl Display for IfClauseCommand
impl Node for IfClauseCommand
Source§impl SourceLocation for IfClauseCommand
impl SourceLocation for IfClauseCommand
Source§fn location(&self) -> Option<SourceSpan>
fn location(&self) -> Option<SourceSpan>
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 UnsafeUnpin 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