Struct semantic_analyzer::types::IfStatement
source · pub struct IfStatement {
pub condition: IfCondition,
pub body: IfBodyStatements,
pub else_statement: Option<IfBodyStatements>,
pub else_if_statement: Option<Box<IfStatement>>,
}
Fields§
§condition: IfCondition
§body: IfBodyStatements
§else_statement: Option<IfBodyStatements>
§else_if_statement: Option<Box<IfStatement>>
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 From<IfStatement<'_>> for IfStatement
impl From<IfStatement<'_>> for IfStatement
source§fn from(value: IfStatement<'_>) -> Self
fn from(value: IfStatement<'_>) -> Self
Converts to this type from the input type.
source§impl PartialEq<IfStatement> for IfStatement
impl PartialEq<IfStatement> for IfStatement
source§fn eq(&self, other: &IfStatement) -> bool
fn eq(&self, other: &IfStatement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IfStatement
Auto Trait Implementations§
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