INTERNAL: Do not use. A slice pattern. For example:
match x {
[1, 2, 3, 4, 5] => "ok",
[1, 2, ..] => "fail",
[x, y, .., z, 7] => "fail",
}
Import path
import codeql.rust.elements.internal.generated.RawDirect supertypes
Predicates
| getNumberOfPats | Gets the number of patterns of this slice pattern. |
| getPat | Gets the |
| toString |