Struct lib_ruby_parser::nodes::And[][src]

#[repr(C)]pub struct And {
    pub lhs: Ptr<Node>,
    pub rhs: Ptr<Node>,
    pub operator_l: LocPtr,
    pub expression_l: LocPtr,
}

Represents foo && bar (or foo and bar) statement.

Fields

lhs: Ptr<Node>

Left hand statament of the && operation.

Lvar("foo") node for foo && bar

rhs: Ptr<Node>

Right hand statement of the && operation.

Lvar("bar") node for foo && bar

operator_l: LocPtr

Location of the && (or and) operator

a && b
  ~~
expression_l: LocPtr

Location of the full expression

a && b
~~~~~~

Trait Implementations

impl Clone for And[src]

impl Debug for And[src]

impl PartialEq<And> for And[src]

impl StructuralPartialEq for And[src]

Auto Trait Implementations

impl RefUnwindSafe for And

impl Send for And

impl Sync for And

impl Unpin for And

impl UnwindSafe for And

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.