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
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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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