Struct ruby_prism_sys::pm_or_node
source · #[repr(C)]pub struct pm_or_node {
pub base: pm_node_t,
pub left: *mut pm_node,
pub right: *mut pm_node,
pub operator_loc: pm_location_t,
}Expand description
OrNode
Type: PM_OR_NODE
@extends pm_node_t
Fields§
§base: pm_node_tThe embedded base node.
left: *mut pm_nodeOrNode#left
Represents the left side of the expression. It can be any non-void expression.
left or right
^^^^
1 || 2
^
right: *mut pm_nodeOrNode#right
Represents the right side of the expression. It can be any non-void expression.
left || right
^^^^^
1 or 2
^
operator_loc: pm_location_tOrNode#operator_loc
The location of the or keyword or the || operator.
left or right
^^
Trait Implementations§
source§impl Clone for pm_or_node
impl Clone for pm_or_node
source§fn clone(&self) -> pm_or_node
fn clone(&self) -> pm_or_node
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for pm_or_node
impl Debug for pm_or_node
source§impl Default for pm_or_node
impl Default for pm_or_node
impl Copy for pm_or_node
Auto Trait Implementations§
impl RefUnwindSafe for pm_or_node
impl !Send for pm_or_node
impl !Sync for pm_or_node
impl Unpin for pm_or_node
impl UnwindSafe for pm_or_node
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