Struct lib_ruby_parser::nodes::MatchNilPattern
source · [−]#[repr(C)]pub struct MatchNilPattern {
pub operator_l: Loc,
pub name_l: Loc,
pub expression_l: Loc,
}Expand description
Represents empty hash pattern that is used in pattern matching (i.e. in **nil)
Fields
operator_l: LocLocation of the ** operator
in **nil
~~name_l: LocLocation of the name
in **nil
~~~expression_l: LocLocation of the full expression
in **nil
~~~~~Trait Implementations
sourceimpl Clone for MatchNilPattern
impl Clone for MatchNilPattern
sourcefn clone(&self) -> MatchNilPattern
fn clone(&self) -> MatchNilPattern
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MatchNilPattern
impl Debug for MatchNilPattern
sourceimpl PartialEq<MatchNilPattern> for MatchNilPattern
impl PartialEq<MatchNilPattern> for MatchNilPattern
sourcefn eq(&self, other: &MatchNilPattern) -> bool
fn eq(&self, other: &MatchNilPattern) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MatchNilPattern) -> bool
fn ne(&self, other: &MatchNilPattern) -> bool
This method tests for !=.
impl StructuralPartialEq for MatchNilPattern
Auto Trait Implementations
impl RefUnwindSafe for MatchNilPattern
impl Send for MatchNilPattern
impl Sync for MatchNilPattern
impl Unpin for MatchNilPattern
impl UnwindSafe for MatchNilPattern
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more