Enum semantic_analyzer::ast::IfCondition
source · pub enum IfCondition<'a> {
Single(Expression<'a>),
Logic(ExpressionLogicCondition<'a>),
}Expand description
IfCondition if-condition control flow element of AST.
One of the basic control flow. Basic entities:
- single expression condition
- logic expression condition tree
Variants§
Single(Expression<'a>)
Single if condition based on expression
Logic(ExpressionLogicCondition<'a>)
Logic expression condition tree
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 copy 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>
source§impl From<IfCondition<'_>> for IfCondition
impl From<IfCondition<'_>> for IfCondition
source§fn from(value: IfCondition<'_>) -> Self
fn from(value: IfCondition<'_>) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq for IfCondition<'a>
impl<'a> PartialEq for IfCondition<'a>
source§fn eq(&self, other: &IfCondition<'a>) -> bool
fn eq(&self, other: &IfCondition<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> StructuralPartialEq for IfCondition<'a>
Auto Trait Implementations§
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> 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