Struct boa::syntax::ast::node::conditional::conditional_op::ConditionalOp [−][src]
pub struct ConditionalOp { /* fields omitted */ }Expand description
The conditional (ternary) operator is the only JavaScript operator that takes three
operands.
This operator is the only JavaScript operator that takes three operands: a condition
followed by a question mark (?), then an expression to execute if the condition is
truthy followed by a colon (:), and finally the expression to execute if the condition
is false. This operator is frequently used as a shortcut for the if statement.
More information:
Implementations
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 !=.
Runs Finalize::finalize() on this object and all contained subobjects Read more
Auto Trait Implementations
impl !RefUnwindSafe for ConditionalOp
impl !Send for ConditionalOp
impl !Sync for ConditionalOp
impl Unpin for ConditionalOp
impl UnwindSafe for ConditionalOp
Blanket Implementations
Mutably borrows from an owned value. Read more