Struct lib_ruby_parser::nodes::EmptyElse
source · #[repr(C)]pub struct EmptyElse {
pub expression_l: Loc,
}
Expand description
Represents a special empty else that is a part of the pattern matching.
Usually empty else (e.g. part of the if
statement) doesn’t mean anything,
however in pattern matching it prevents raising a NoPatternError
.
Throwing away this else
may affect your code.
Fields§
§expression_l: Loc
Location of the else
keyword
case foo; in 1; else; end
~~~~
Trait Implementations§
source§impl PartialEq for EmptyElse
impl PartialEq for EmptyElse
impl StructuralPartialEq for EmptyElse
Auto Trait Implementations§
impl Freeze for EmptyElse
impl RefUnwindSafe for EmptyElse
impl Send for EmptyElse
impl Sync for EmptyElse
impl Unpin for EmptyElse
impl UnwindSafe for EmptyElse
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