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: Loc
Location of the **
operator
in **nil
~~
name_l: Loc
Location of the name
in **nil
~~~
expression_l: Loc
Location of the full expression
in **nil
~~~~~
Trait Implementations§
source§impl Clone for MatchNilPattern
impl Clone for MatchNilPattern
source§fn clone(&self) -> MatchNilPattern
fn clone(&self) -> MatchNilPattern
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 MatchNilPattern
impl Debug for MatchNilPattern
source§impl PartialEq for MatchNilPattern
impl PartialEq for MatchNilPattern
source§fn 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 ==
.impl StructuralPartialEq for MatchNilPattern
Auto Trait Implementations§
impl Freeze for MatchNilPattern
impl RefUnwindSafe for MatchNilPattern
impl Send for MatchNilPattern
impl Sync for MatchNilPattern
impl Unpin for MatchNilPattern
impl UnwindSafe for MatchNilPattern
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