Struct lib_ruby_parser::nodes::IfTernary[][src]

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,
}

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

impl Clone for IfTernary[src]

impl Debug for IfTernary[src]

impl PartialEq<IfTernary> for IfTernary[src]

impl StructuralPartialEq for IfTernary[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.