INTERNAL: Do not use. A match expression. For example:
match x {
Option::Some(y) => y,
Option::None => 0,
}
match x {
Some(y) if y != 0 => 1 / y,
_ => 0,
}
Import path
import codeql.rust.elements.internal.generated.RawDirect supertypes
Predicates
| getAttr | Gets the |
| getMatchArmList | Gets the match arm list of this match expression, if it exists. |
| getNumberOfAttrs | Gets the number of attrs of this match expression. |
| getScrutinee | Gets the scrutinee (the expression being matched) of this match expression, if it exists. |
| toString |