#[repr(C)]pub struct pm_alternation_pattern_node {
pub base: pm_node_t,
pub left: *mut pm_node,
pub right: *mut pm_node,
pub operator_loc: pm_location_t,
}
Expand description
AlternationPatternNode
Represents an alternation pattern in pattern matching.
foo => bar | baz
^^^^^^^^^
Type: ::PM_ALTERNATION_PATTERN_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
left: *mut pm_node
AlternationPatternNode#left
Represents the left side of the expression.
foo => bar | baz
^^^
right: *mut pm_node
AlternationPatternNode#right
Represents the right side of the expression.
foo => bar | baz
^^^
operator_loc: pm_location_t
AlternationPatternNode#operator_loc
Represents the alternation operator location.
foo => bar | baz
^
Trait Implementations§
Source§impl Clone for pm_alternation_pattern_node
impl Clone for pm_alternation_pattern_node
Source§fn clone(&self) -> pm_alternation_pattern_node
fn clone(&self) -> pm_alternation_pattern_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_alternation_pattern_node
impl Debug for pm_alternation_pattern_node
impl Copy for pm_alternation_pattern_node
Auto Trait Implementations§
impl Freeze for pm_alternation_pattern_node
impl RefUnwindSafe for pm_alternation_pattern_node
impl !Send for pm_alternation_pattern_node
impl !Sync for pm_alternation_pattern_node
impl Unpin for pm_alternation_pattern_node
impl UnwindSafe for pm_alternation_pattern_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