pub struct IfStatement {
pub branches: Vec<IfBranch>,
pub else_block: Option<Block>,
}
Fields§
§branches: Vec<IfBranch>
§else_block: Option<Block>
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<(Vec<(Expression, Block)>, Option<Block>)> for IfStatement
impl From<(Vec<(Expression, Block)>, Option<Block>)> for IfStatement
Source§impl Into<Statement> for IfStatement
impl Into<Statement> for IfStatement
Source§impl PartialEq for IfStatement
impl PartialEq for IfStatement
impl Eq 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