#[repr(C)]pub struct pm_capture_pattern_node {
pub base: pm_node_t,
pub value: *mut pm_node,
pub target: *mut pm_local_variable_target_node,
pub operator_loc: pm_location_t,
}
Expand description
CapturePatternNode
Represents assigning to a local variable in pattern matching.
foo => [bar => baz]
^^^^^^^^^^^^
Type: ::PM_CAPTURE_PATTERN_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
value: *mut pm_node
CapturePatternNode#value
Represents the value to capture.
foo => bar
^^^
target: *mut pm_local_variable_target_node
CapturePatternNode#target
Represents the target of the capture.
foo => bar
^^^
operator_loc: pm_location_t
CapturePatternNode#operator_loc
Represents the location of the =>
operator.
foo => bar
^^
Trait Implementations§
Source§impl Clone for pm_capture_pattern_node
impl Clone for pm_capture_pattern_node
Source§fn clone(&self) -> pm_capture_pattern_node
fn clone(&self) -> pm_capture_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_capture_pattern_node
impl Debug for pm_capture_pattern_node
Source§impl Default for pm_capture_pattern_node
impl Default for pm_capture_pattern_node
impl Copy for pm_capture_pattern_node
Auto Trait Implementations§
impl Freeze for pm_capture_pattern_node
impl RefUnwindSafe for pm_capture_pattern_node
impl !Send for pm_capture_pattern_node
impl !Sync for pm_capture_pattern_node
impl Unpin for pm_capture_pattern_node
impl UnwindSafe for pm_capture_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