Struct lib_ruby_parser::nodes::MatchRest
source · #[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
~~~~
Trait Implementations§
source§impl PartialEq for MatchRest
impl PartialEq for MatchRest
impl StructuralPartialEq for MatchRest
Auto Trait Implementations§
impl Freeze for MatchRest
impl RefUnwindSafe for MatchRest
impl Send for MatchRest
impl Sync for MatchRest
impl Unpin for MatchRest
impl UnwindSafe for MatchRest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more