Struct resast::expr::ConditionalExpr [−][src]
pub struct ConditionalExpr<'a> {
pub test: Box<Expr<'a>>,
pub alternate: Box<Expr<'a>>,
pub consequent: Box<Expr<'a>>,
}
Expand description
A ternery expression
var a = true ? 'stuff' : 'things';
Fields
test: Box<Expr<'a>>
alternate: Box<Expr<'a>>
consequent: Box<Expr<'a>>
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ConditionalExpr<'a>
impl<'a> Send for ConditionalExpr<'a>
impl<'a> Sync for ConditionalExpr<'a>
impl<'a> Unpin for ConditionalExpr<'a>
impl<'a> UnwindSafe for ConditionalExpr<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more