Class Raw::MatchGuard
INTERNAL: Do not use. A guard condition in a match arm.
For example:
match x {
y if y > 0 => "positive",
// ^^^^^^^
_ => "non-positive",
}
Import path
import codeql.rust.elements.internal.generated.RawDirect supertypes
Indirect supertypes
Predicates
| getCondition | Gets the condition of this match guard, if it exists. |
| toString |