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

Class Raw::ForExpr

INTERNAL: Do not use. A for loop expression.

For example:

for x in 0..10 {
    println!("{}", x);
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

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

getIterable

Gets the iterable of this for expression, if it exists.

getNumberOfAttrs

Gets the number of attrs of this for expression.

getPat

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

toString

Inherited predicates

getLabel

Gets the label of this labelable expression, if it exists.

from LabelableExpr
getLoopBody

Gets the loop body of this looping expression, if it exists.

from LoopingExpr