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: LocLocation of the unless keyword
case foo; in pattern unless cond; end
~~~~~~
expression_l: LocLocation 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 UnlessGuardimpl Send for UnlessGuardimpl Sync for UnlessGuardimpl Unpin for UnlessGuardimpl UnwindSafe for UnlessGuardBlanket Implementations
Mutably borrows from an owned value. Read more