INTERNAL: Do not use. A let statement. For example:
let x = 42;
let x: i32 = 42;
let x: i32;
let x;
let (x, y) = (1, 2);
let Some(x) = std::env::var("FOO") else {
return;
};
Import path
import codeql.rust.elements.internal.generated.RawPredicates
| getAttr | Gets the |
| getInitializer | Gets the initializer of this let statement, if it exists. |
| getLetElse | Gets the let else of this let statement, if it exists. |
| getNumberOfAttrs | Gets the number of attrs of this let statement. |
| getPat | Gets the pattern of this let statement, if it exists. |
| getTypeRepr | Gets the type representation of this let statement, if it exists. |
| toString |