Struct lib_ruby_parser::nodes::IfGuard
source · #[repr(C)]pub struct IfGuard {
pub cond: Box<Node>,
pub keyword_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents an if
guard used in pattern matching (i.e. case foo; in pattern if guard; end
)
Fields§
§cond: Box<Node>
Condition of the guard, Lvar("foo")
in in pattern if guard
keyword_l: Loc
Location of the if
keyword
case foo; in pattern if cond; end
~~
expression_l: Loc
Location of the full expression
case foo; in pattern if cond; end
~~~~~~~
Trait Implementations§
source§impl PartialEq for IfGuard
impl PartialEq for IfGuard
impl StructuralPartialEq for IfGuard
Auto Trait Implementations§
impl Freeze for IfGuard
impl RefUnwindSafe for IfGuard
impl Send for IfGuard
impl Sync for IfGuard
impl Unpin for IfGuard
impl UnwindSafe for IfGuard
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