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

Class Raw::LetExpr

INTERNAL: Do not use. A let expression. For example:

if let Some(x) = maybe_some {
    println!("{}", x);
}

Import path

import codeql.rust.elements.internal.generated.Raw

Direct supertypes

Indirect supertypes

Predicates

getAttr

Gets the indexth attr of this let expression (0-based).

getNumberOfAttrs

Gets the number of attrs of this let expression.

getPat

Gets the pattern of this let expression, if it exists.

getScrutinee

Gets the scrutinee of this let expression, if it exists.

toString