#[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)
^^^^^^^^^^^^^^^^^^^^ foo => *bar, baz, *qux
^^^^^^^^^^^^^^^Type: ::PM_FIND_PATTERN_NODE
@extends pm_node_t
Fields§
§base: pm_node_tThe embedded base node.
constant: *mut pm_nodeFindPatternNode#constant
Represents the optional constant preceding the pattern
foo in Foo(*bar, baz, *qux)
^^^left: *mut pm_splat_nodeFindPatternNode#left
Represents the first wildcard node in the pattern.
foo in *bar, baz, *qux
^^^^ foo in Foo(*bar, baz, *qux)
^^^^requireds: pm_node_listFindPatternNode#requireds
Represents the nodes in between the wildcards.
foo in *bar, baz, *qux
^^^ foo in Foo(*bar, baz, 1, *qux)
^^^^^^right: *mut pm_nodeFindPatternNode#right
Represents the second wildcard node in the pattern.
foo in *bar, baz, *qux
^^^^ foo in Foo(*bar, baz, *qux)
^^^^opening_loc: pm_location_tFindPatternNode#opening_loc
The location of the opening brace.
foo in [*bar, baz, *qux]
^ foo in Foo(*bar, baz, *qux)
^closing_loc: pm_location_tFindPatternNode#closing_loc
The location of the closing brace.
foo in [*bar, baz, *qux]
^ foo in Foo(*bar, baz, *qux)
^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 duplicate 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