pub struct If {
pub conditions: Vec<(WS, Expr, Vec<Node>)>,
pub otherwise: Option<(WS, Vec<Node>)>,
}Expand description
An if/elif/else condition with their respective body
Fields§
§conditions: Vec<(WS, Expr, Vec<Node>)>First item if the if, all the ones after are elif
otherwise: Option<(WS, Vec<Node>)>The optional else block
Trait Implementations§
impl StructuralPartialEq for If
Auto Trait Implementations§
impl Freeze for If
impl RefUnwindSafe for If
impl Send for If
impl Sync for If
impl Unpin for If
impl UnwindSafe for If
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