Struct lib_ruby_parser::nodes::MatchRest [−][src]
#[repr(C)]pub struct MatchRest {
pub name: Option<Box<Node>>,
pub operator_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents a wildcard pattern used in pattern matching (i.e. in *foo
)
Fields
name: Option<Box<Node>>
Name of the variable name
None
if there’s no name (i.e. in *
)
operator_l: Loc
Location of the *
operator
case foo; in *bar; end
~
expression_l: Loc
Location of the *
operator
case foo; in *bar; end
~~~~
Implementations
Returns operator_l
field
Returns expression_l
field
Sets operator_l
field
Sets expression_l
field
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MatchRest
impl UnwindSafe for MatchRest
Blanket Implementations
Mutably borrows from an owned value. Read more