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 duplicate 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 moreAuto Trait Implementations§
impl<S> Freeze for IfStatement<S>
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