pub struct If<'a> {
pub if_span: Span,
pub conditions: Vec<IfCondition<'a>>,
pub else_: Option<(Span, Vec<Statement<'a>>)>,
pub endif_span: Span,
}Expand description
If statement
Fields§
§if_span: SpanSpan of “IF”
conditions: Vec<IfCondition<'a>>§else_: Option<(Span, Vec<Statement<'a>>)>Span of “ELSE” and else Statement if specified
endif_span: SpanSpan of “ENDIF”
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for If<'a>
impl<'a> RefUnwindSafe for If<'a>
impl<'a> Send for If<'a>
impl<'a> Sync for If<'a>
impl<'a> Unpin for If<'a>
impl<'a> UnsafeUnpin for If<'a>
impl<'a> UnwindSafe for If<'a>
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