pub struct IfExpression {
pub expr: Box<Expression>,
pub then: Block,
pub otherwise: Option<Box<Expression>>,
}
Fields§
§expr: Box<Expression>
§then: Block
§otherwise: Option<Box<Expression>>
Trait Implementations§
Source§impl Clone for IfExpression
impl Clone for IfExpression
Source§fn clone(&self) -> IfExpression
fn clone(&self) -> IfExpression
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 moreSource§impl Debug for IfExpression
impl Debug for IfExpression
Source§impl PartialEq for IfExpression
impl PartialEq for IfExpression
impl StructuralPartialEq for IfExpression
Auto Trait Implementations§
impl Freeze for IfExpression
impl RefUnwindSafe for IfExpression
impl Send for IfExpression
impl Sync for IfExpression
impl Unpin for IfExpression
impl UnwindSafe for IfExpression
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