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: LocLocation of the * operator
case foo; in *bar; end
~expression_l: LocLocation of the * operator
case foo; in *bar; end
~~~~Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MatchRest
impl UnwindSafe for MatchRest
Blanket Implementations
Mutably borrows from an owned value. Read more