Struct lib_ruby_parser::nodes::IfTernary [−][src]
#[repr(C)]pub struct IfTernary {
pub cond: Box<Node>,
pub if_true: Box<Node>,
pub if_false: Box<Node>,
pub question_l: Loc,
pub colon_l: Loc,
pub expression_l: Loc,
}Expand description
Represents ternary if statement (i.e. cond ? if_true : if_false)
Fields
cond: Box<Node>Condition of the if statement
if_true: Box<Node>True-branch
if_false: Box<Node>True-branch
question_l: LocLocation of the ? operator
cond ? if_true : if_false
~colon_l: LocLocation of the : operator
cond ? if_true : if_false
~expression_l: LocLocation of the full expression
cond ? if_true : if_false
~~~~~~~~~~~~~~~~~~~~~~~~~Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IfTernary
impl UnwindSafe for IfTernary
Blanket Implementations
Mutably borrows from an owned value. Read more