Struct piccolo::compiler::parser::IfStatement
source · pub struct IfStatement<S> {
pub if_part: (Expression<S>, Block<S>),
pub else_if_parts: Vec<(Expression<S>, Block<S>)>,
pub else_part: Option<Block<S>>,
}Fields§
§if_part: (Expression<S>, Block<S>)§else_if_parts: Vec<(Expression<S>, Block<S>)>§else_part: Option<Block<S>>Trait Implementations§
source§impl<S: Clone> Clone for IfStatement<S>
impl<S: Clone> Clone for IfStatement<S>
source§fn clone(&self) -> IfStatement<S>
fn clone(&self) -> IfStatement<S>
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<S: Debug> Debug for IfStatement<S>
impl<S: Debug> Debug for IfStatement<S>
source§impl<S: PartialEq> PartialEq<IfStatement<S>> for IfStatement<S>
impl<S: PartialEq> PartialEq<IfStatement<S>> for IfStatement<S>
source§fn eq(&self, other: &IfStatement<S>) -> bool
fn eq(&self, other: &IfStatement<S>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<S> StructuralPartialEq for IfStatement<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for IfStatement<S>where S: RefUnwindSafe,
impl<S> Send for IfStatement<S>where S: Send,
impl<S> Sync for IfStatement<S>where S: Sync,
impl<S> Unpin for IfStatement<S>where S: Unpin,
impl<S> UnwindSafe for IfStatement<S>where S: UnwindSafe,
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