Struct lib_ruby_parser::nodes::ConstPattern [−][src]
Const pattern used in pattern matching (e.g. in A(1, 2)
)
Fields
const_: Ptr<Node>
Constant that is used, Const("Foo")
for in For(42)
pattern: Ptr<Node>
Inner part of the constant pattern
ArrayPattern(vec![ Int("1") ])
for Foo(1)
begin_l: LocPtr
Location of the open parenthesis
case 1; in Foo(42); end
~
end_l: LocPtr
Location of the closing parenthesis
case 1; in Foo(42); end
~
expression_l: LocPtr
Location of the full expression
case 1; in Foo(42); end
~~~~~~~
Trait Implementations
impl Clone for ConstPattern
[src][+]
impl Debug for ConstPattern
[src][+]
impl PartialEq<ConstPattern> for ConstPattern
[src][+]
impl StructuralPartialEq for ConstPattern
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConstPattern
impl Send for ConstPattern
impl Sync for ConstPattern
impl Unpin for ConstPattern
impl UnwindSafe for ConstPattern
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>,