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

Module Impl

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

Import path

import codeql.rust.elements.internal.MatchExprImpl

Classes

MatchExpr

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