#[repr(C)]pub struct pm_find_pattern_node {
pub base: pm_node_t,
pub constant: *mut pm_node,
pub left: *mut pm_splat_node,
pub requireds: pm_node_list,
pub right: *mut pm_node,
pub opening_loc: pm_location_t,
pub closing_loc: pm_location_t,
}
Expand description
FindPatternNode
Represents a find pattern in pattern matching.
foo in *bar, baz, *qux
^^^^^^^^^^^^^^^
foo in [*bar, baz, *qux]
^^^^^^^^^^^^^^^^^
foo in Foo(*bar, baz, *qux)
^^^^^^^^^^^^^^^^^^^^
Type: ::PM_FIND_PATTERN_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
constant: *mut pm_node
FindPatternNode#constant
left: *mut pm_splat_node
FindPatternNode#left
requireds: pm_node_list
FindPatternNode#requireds
right: *mut pm_node
FindPatternNode#right
opening_loc: pm_location_t
FindPatternNode#opening_loc
closing_loc: pm_location_t
FindPatternNode#closing_loc
Trait Implementations§
Source§impl Clone for pm_find_pattern_node
impl Clone for pm_find_pattern_node
Source§fn clone(&self) -> pm_find_pattern_node
fn clone(&self) -> pm_find_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_find_pattern_node
impl Debug for pm_find_pattern_node
Source§impl Default for pm_find_pattern_node
impl Default for pm_find_pattern_node
impl Copy for pm_find_pattern_node
Auto Trait Implementations§
impl Freeze for pm_find_pattern_node
impl RefUnwindSafe for pm_find_pattern_node
impl !Send for pm_find_pattern_node
impl !Sync for pm_find_pattern_node
impl Unpin for pm_find_pattern_node
impl UnwindSafe for pm_find_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