Struct semantic_analyzer::types::condition::IfStatement
source · pub struct IfStatement {
pub condition: IfCondition,
pub body: IfBodyStatements,
pub else_statement: Option<IfBodyStatements>,
pub else_if_statement: Option<Box<IfStatement>>,
}Expand description
§If statement
Basic entity that represent if-statement.
Fields§
§condition: IfConditionIf-condition
body: IfBodyStatementsBasic if-body, if if-condition is true
else_statement: Option<IfBodyStatements>Basic else-body, if if-condition is false
else_if_statement: Option<Box<IfStatement>>Basic else-if-body
Trait Implementations§
source§impl Clone for IfStatement
impl Clone for IfStatement
source§fn clone(&self) -> IfStatement
fn clone(&self) -> IfStatement
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 Debug for IfStatement
impl Debug for IfStatement
source§impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<IfStatement<'_, I, E>> for IfStatement
impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<IfStatement<'_, I, E>> for IfStatement
source§fn from(value: IfStatement<'_, I, E>) -> Self
fn from(value: IfStatement<'_, I, E>) -> Self
Converts to this type from the input type.
source§impl PartialEq for IfStatement
impl PartialEq for IfStatement
impl StructuralPartialEq for IfStatement
Auto Trait Implementations§
impl Freeze for IfStatement
impl RefUnwindSafe for IfStatement
impl Send for IfStatement
impl Sync for IfStatement
impl Unpin for IfStatement
impl UnwindSafe for IfStatement
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)