[][src]Struct lib_ruby_parser::nodes::IfGuard

pub struct IfGuard {
    pub cond: Box<Node>,
    pub keyword_l: Range,
    pub expression_l: Range,
}

Represents an if guard used in pattern matching (i.e. case foo; in pattern if guard; end)

Fields

cond: Box<Node>

Condition of the guard, Lvar("foo") in in pattern if guard

keyword_l: Range

Location of the if keyword

case foo; in pattern if cond; end
                     ~~
expression_l: Range

Location of the full expression

case foo; in pattern if cond; end
                     ~~~~~~~

Trait Implementations

impl Clone for IfGuard[src]

impl Debug for IfGuard[src]

impl PartialEq<IfGuard> for IfGuard[src]

impl StructuralPartialEq for IfGuard[src]

Auto Trait Implementations

impl !RefUnwindSafe for IfGuard

impl !Send for IfGuard

impl !Sync for IfGuard

impl Unpin for IfGuard

impl UnwindSafe for IfGuard

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.