CodeQL library for Rust
codeql/rust-all 0.2.5-dev (changelog, source)
Search

Module Impl

INTERNAL: This module contains the customizable definition of MatchArm and should not be referenced directly.

Import path

import codeql.rust.elements.internal.MatchArmImpl

Classes

MatchArm

A match arm. For example: rust match x { Option::Some(y) => y, Option::None => 0, }; rust match x { Some(y) if y != 0 => 1 / y, _ => 0, };