#[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§
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