pub struct IfCommand {
pub condition: Vec<Command>,
pub then_branch: Vec<Command>,
pub elif_branches: Vec<(Vec<Command>, Vec<Command>)>,
pub else_branch: Option<Vec<Command>>,
pub span: Span,
}Expand description
If statement.
Fields§
§condition: Vec<Command>§then_branch: Vec<Command>§elif_branches: Vec<(Vec<Command>, Vec<Command>)>§else_branch: Option<Vec<Command>>§span: SpanSource span of this command
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IfCommand
impl RefUnwindSafe for IfCommand
impl Send for IfCommand
impl Sync for IfCommand
impl Unpin 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