Struct lib_ruby_parser::nodes::UnlessGuard [−][src]
#[repr(C)]pub struct UnlessGuard { pub cond: Box<Node>, pub keyword_l: Loc, pub expression_l: Loc, }
Expand description
Represents an unless
guard used in pattern matching (i.e. in pattern unless guard
)
Fields
cond: Box<Node>
Condition of the guard, Lvar("foo")
in in pattern unless guard
keyword_l: Loc
Location of the unless
keyword
case foo; in pattern unless cond; end
~~~~~~
expression_l: Loc
Location of the full expression
case foo; in pattern unless cond; end
~~~~~~~~~~~
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for UnlessGuard
impl Send for UnlessGuard
impl Sync for UnlessGuard
impl Unpin for UnlessGuard
impl UnwindSafe for UnlessGuard
Blanket Implementations
Mutably borrows from an owned value. Read more