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

Class Raw::ForBinder

INTERNAL: Do not use. A for binder, specifying lifetime or type parameters for a closure or a type.

For example:

let print_any = for<T: std::fmt::Debug> |x: T| {
//              ^^^^^^^^^^^^^^^^^^^^^^^
    println!("{:?}", x);
};

print_any(42);
print_any("hello");

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getGenericParamList

Gets the generic parameter list of this for binder, if it exists.

toString