Struct lib_ruby_parser::nodes::And
source · #[repr(C)]pub struct And {
pub lhs: Box<Node>,
pub rhs: Box<Node>,
pub operator_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents foo && bar
(or foo and bar
) statement.
Fields§
§lhs: Box<Node>
Left hand statament of the &&
operation.
Lvar("foo")
node for foo && bar
rhs: Box<Node>
Right hand statement of the &&
operation.
Lvar("bar")
node for foo && bar
operator_l: Loc
Location of the &&
(or and
) operator
a && b
~~
expression_l: Loc
Location of the full expression
a && b
~~~~~~
Trait Implementations§
impl StructuralPartialEq for And
Auto Trait Implementations§
impl Freeze for And
impl RefUnwindSafe for And
impl Send for And
impl Sync for And
impl Unpin for And
impl UnwindSafe for And
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