pub struct TernaryExpr {
pub condition: Box<Expr>,
pub then_expr: Option<Box<Expr>>,
pub else_expr: Box<Expr>,
}Fields§
§condition: Box<Expr>§then_expr: Option<Box<Expr>>§else_expr: Box<Expr>Trait Implementations§
Source§impl Clone for TernaryExpr
impl Clone for TernaryExpr
Source§fn clone(&self) -> TernaryExpr
fn clone(&self) -> TernaryExpr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TernaryExpr
impl Debug for TernaryExpr
Auto Trait Implementations§
impl Freeze for TernaryExpr
impl RefUnwindSafe for TernaryExpr
impl Send for TernaryExpr
impl Sync for TernaryExpr
impl Unpin for TernaryExpr
impl UnsafeUnpin for TernaryExpr
impl UnwindSafe for TernaryExpr
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