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 RefUnwindSafe for And
impl Send for And
impl Sync for And
impl Unpin for And
impl UnwindSafe for And
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more