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

Class Raw::WhileExpr

INTERNAL: Do not use. A while loop expression.

For example:

while x < 10 {
    x += 1;
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

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

getCondition

Gets the condition of this while expression, if it exists.

getNumberOfAttrs

Gets the number of attrs of this while expression.

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