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

Class Raw::ReturnExpr

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

fn some_value() -> i32 {
    return 42;
}
fn no_value() -> () {
    return;
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

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

getExpr

Gets the expression of this return expression, if it exists.

getNumberOfAttrs

Gets the number of attrs of this return expression.

toString