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
impl StructuralPartialEq for EmptyElse
Auto Trait Implementations
impl RefUnwindSafe for EmptyElse
impl Send for EmptyElse
impl Sync for EmptyElse
impl Unpin for EmptyElse
impl UnwindSafe for EmptyElse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more