pub struct IfStatement {
    pub condition: Expression,
    pub body: Box<Statement>,
    pub else_body: Option<Box<Statement>>,
}Fields§
§condition: Expression§body: Box<Statement>§else_body: Option<Box<Statement>>Implementations§
Source§impl IfStatement
 
impl IfStatement
pub fn new(condition: Expression, body: Statement) -> IfStatement
pub fn is_valid(&self) -> bool
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 Default for IfStatement
 
impl Default for IfStatement
Source§fn default() -> IfStatement
 
fn default() -> IfStatement
Returns the “default value” for a type. Read more
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