pub struct TernaryExpr {
pub cond: Box<Expr>,
pub then_expr: Box<Expr>,
pub else_expr: Box<Expr>,
pub span: Span,
}Fields§
§cond: Box<Expr>§then_expr: Box<Expr>§else_expr: Box<Expr>§span: SpanTrait 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 · 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
Source§impl PartialEq for TernaryExpr
impl PartialEq for TernaryExpr
impl StructuralPartialEq 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 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