pub struct IfCondition<'a> {
pub elseif_span: Option<Span>,
pub search_condition: Expression<'a>,
pub then_span: Span,
pub then: Vec<Statement<'a>>,
}Expand description
Condition in if statement
Fields§
§elseif_span: Option<Span>Span of “ELSEIF” if specified
search_condition: Expression<'a>Expression that must be true for then to be executed
then_span: SpanSpan of “THEN”
then: Vec<Statement<'a>>List of statement to be executed if search_condition is true
Trait Implementations§
Source§impl<'a> Clone for IfCondition<'a>
impl<'a> Clone for IfCondition<'a>
Source§fn clone(&self) -> IfCondition<'a>
fn clone(&self) -> IfCondition<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for IfCondition<'a>
impl<'a> Debug for IfCondition<'a>
Auto Trait Implementations§
impl<'a> Freeze for IfCondition<'a>
impl<'a> RefUnwindSafe for IfCondition<'a>
impl<'a> Send for IfCondition<'a>
impl<'a> Sync for IfCondition<'a>
impl<'a> Unpin for IfCondition<'a>
impl<'a> UnsafeUnpin for IfCondition<'a>
impl<'a> UnwindSafe for IfCondition<'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