[−][src]Struct lib_ruby_parser::nodes::HashPattern
Represents a hash pattern used in pattern matching (i.e. in { a: 1 }
)
Fields
elements: Vec<Node>
A list of inner patterns
begin_l: Option<Range>
Location of the open parenthesis
case foo; in { a: 1 }; end
~
None
if there are no parentheses
end_l: Option<Range>
Location of the open parenthesis
case foo; in { a: 1 }; end
~
None
if there are no parentheses
expression_l: Range
Location of the full expression
case foo; in { a: 1 }; end
~~~~~~~~
Trait Implementations
impl Clone for HashPattern
[src][+]
impl Debug for HashPattern
[src][+]
impl PartialEq<HashPattern> for HashPattern
[src][+]
impl StructuralPartialEq for HashPattern
[src]
Auto Trait Implementations
impl RefUnwindSafe for HashPattern
impl Send for HashPattern
impl Sync for HashPattern
impl Unpin for HashPattern
impl UnwindSafe for HashPattern
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,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,