pub struct IfCommand {
pub condition: Vec<CompleteCommand>,
pub then_body: Vec<CompleteCommand>,
pub elifs: Vec<ElifClause>,
pub else_body: Option<Vec<CompleteCommand>>,
pub span: Span,
}Expand description
An if / elif / else / fi command.
Fields§
§condition: Vec<CompleteCommand>The condition commands.
then_body: Vec<CompleteCommand>The body to run when the condition is true.
elifs: Vec<ElifClause>Zero or more elif clauses.
else_body: Option<Vec<CompleteCommand>>Optional else body.
span: SpanSource span.
Trait Implementations§
impl StructuralPartialEq for IfCommand
Auto Trait Implementations§
impl Freeze for IfCommand
impl RefUnwindSafe for IfCommand
impl Send for IfCommand
impl Sync for IfCommand
impl Unpin for IfCommand
impl UnsafeUnpin for IfCommand
impl UnwindSafe for IfCommand
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