pub struct TernaryExpression<'s> {
pub condition: Box<Expression<'s>>,
pub question: &'s Token<'s>,
pub true_value: Box<Expression<'s>>,
pub separator: &'s Token<'s>,
pub false_value: Box<Expression<'s>>,
}Expand description
A ternary expression.
Grammar: Expression ? Expression : Expression
Fields§
§condition: Box<Expression<'s>>§question: &'s Token<'s>§true_value: Box<Expression<'s>>§separator: &'s Token<'s>§false_value: Box<Expression<'s>>Trait Implementations§
Source§impl<'s> Clone for TernaryExpression<'s>
impl<'s> Clone for TernaryExpression<'s>
Source§fn clone(&self) -> TernaryExpression<'s>
fn clone(&self) -> TernaryExpression<'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 TernaryExpression<'s>
impl<'s> RefUnwindSafe for TernaryExpression<'s>
impl<'s> Send for TernaryExpression<'s>
impl<'s> Sync for TernaryExpression<'s>
impl<'s> Unpin for TernaryExpression<'s>
impl<'s> UnwindSafe for TernaryExpression<'s>
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