Struct semantic_analyzer::ast::IfStatement
source · pub struct IfStatement<'a> {
pub condition: IfCondition<'a>,
pub body: IfBodyStatements<'a>,
pub else_statement: Option<IfBodyStatements<'a>>,
pub else_if_statement: Option<Box<IfStatement<'a>>>,
}
Fields§
§condition: IfCondition<'a>
§body: IfBodyStatements<'a>
§else_statement: Option<IfBodyStatements<'a>>
§else_if_statement: Option<Box<IfStatement<'a>>>
Trait Implementations§
source§impl<'a> Clone for IfStatement<'a>
impl<'a> Clone for IfStatement<'a>
source§fn clone(&self) -> IfStatement<'a>
fn clone(&self) -> IfStatement<'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 IfStatement<'a>
impl<'a> Debug for IfStatement<'a>
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 GetLocation for IfStatement<'_>
impl GetLocation for IfStatement<'_>
fn location(&self) -> CodeLocation
source§impl<'a> PartialEq<IfStatement<'a>> for IfStatement<'a>
impl<'a> PartialEq<IfStatement<'a>> for IfStatement<'a>
source§fn eq(&self, other: &IfStatement<'a>) -> bool
fn eq(&self, other: &IfStatement<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for IfStatement<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for IfStatement<'a>
impl<'a> Send for IfStatement<'a>
impl<'a> Sync for IfStatement<'a>
impl<'a> Unpin for IfStatement<'a>
impl<'a> UnwindSafe for IfStatement<'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