Struct lib_ruby_parser::nodes::IfTernary
source · #[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: Loc
Location of the ?
operator
cond ? if_true : if_false
~
colon_l: Loc
Location of the :
operator
cond ? if_true : if_false
~
expression_l: Loc
Location of the full expression
cond ? if_true : if_false
~~~~~~~~~~~~~~~~~~~~~~~~~
Trait Implementations§
source§impl PartialEq for IfTernary
impl PartialEq for IfTernary
impl StructuralPartialEq for IfTernary
Auto Trait Implementations§
impl Freeze for IfTernary
impl RefUnwindSafe for IfTernary
impl Send for IfTernary
impl Sync for IfTernary
impl Unpin for IfTernary
impl UnwindSafe for IfTernary
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