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

Class Impl::Variable

A variable.

Import path

import codeql.rust.elements.internal.VariableImpl

Direct supertypes

Predicates

getAnAccess

Gets an access to this variable.

getEnclosingCfgScope

Gets the enclosing CFG scope for this variable declaration.

getInitializer

Gets the initial value of this variable, if any.

getLetStmt

Gets the let statement that introduces this variable, if any.

getLocation

Gets the location of this variable.

getName

Get the name of this variable.

getParameter

Gets the parameter that introduces this variable, if any.

getPat

Gets the pattern that declares this variable, if any.

getSelfParam

Gets the self parameter that declares this variable, if any.

getText

Gets the name of this variable as a string.

isCaptured

Holds if this variable is captured.

isImmutable

Hold is this variable is immutable.

isMutable

Hold is this variable is mutable.

toString

Gets a textual representation of this variable.

Charpred