Struct lib_ruby_parser::nodes::IfMod  [−][src]
#[repr(C)]pub struct IfMod { pub cond: Ptr<Node>, pub if_true: MaybePtr<Node>, pub if_false: MaybePtr<Node>, pub keyword_l: Loc, pub expression_l: Loc, }
Represents an if/unless modifier (i.e. stmt if cond)
Fields
cond: Ptr<Node>Condition of the modifier
if_true: MaybePtr<Node>True-branch of the modifier.
Always set for if modifier.
Always None for unless modifier.
if_false: MaybePtr<Node>False-branch of the modifier.
Always set for unless modifier.
Always None for if modifier.
keyword_l: LocLocation of the if/unless keyword
stmt if cond
     ~~
stmt unless cond
     ~~~~~~
expression_l: LocLocation of the full expression
stmt if cond
~~~~~~~~~~~~
stmt unless cond
~~~~~~~~~~~~~~~~
Trait Implementations
impl Clone for IfMod[src]
impl Debug for IfMod[src]
impl PartialEq<IfMod> for IfMod[src]
impl StructuralPartialEq for IfMod[src]
Auto Trait Implementations
impl RefUnwindSafe for IfMod
impl Send for IfMod
impl Sync for IfMod
impl Unpin for IfMod
impl UnwindSafe for IfMod
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,