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

Module MatchArm

This module provides the public class MatchArm.

Import path

import codeql.rust.elements.MatchArm

Imports

AstNode

This module provides the public class AstNode.

Attr

This module provides the public class Attr.

Expr

This module provides the public class Expr.

MatchGuard

This module provides the public class MatchGuard.

Pat

This module provides the public class Pat.

Aliases

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, };