Struct lib_ruby_parser::nodes::FindPattern [−][src]
Represents a find pattern using in pattern matching (i.e. in [*x, 1 => a, *y]
)
It's different from ArrayPattern
/ConstPattern
because it supports multiple wildcard pattern
Fields
elements: Vec<Node>
Inner part of the find pattern
begin_l: Option<Range>
Location of the begin
case foo; in [*x, 1 => a, *y]; end
~
None
if there are no brackets/parentheses
end_l: Option<Range>
Location of the end
case foo; in [*x, 1 => a, *y]; end
~
None
if there are no brackets/parentheses
expression_l: Range
Location of the full expression
case foo; in [*x, 1 => a, *y]; end
~~~~~~~~~~~~~~~~
Trait Implementations
impl Clone for FindPattern
[src]
fn clone(&self) -> FindPattern
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FindPattern
[src]
impl PartialEq<FindPattern> for FindPattern
[src]
fn eq(&self, other: &FindPattern) -> bool
[src]
fn ne(&self, other: &FindPattern) -> bool
[src]
impl StructuralPartialEq for FindPattern
[src]
Auto Trait Implementations
impl RefUnwindSafe for FindPattern
[src]
impl Send for FindPattern
[src]
impl Sync for FindPattern
[src]
impl Unpin for FindPattern
[src]
impl UnwindSafe for FindPattern
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,