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

Class Raw::ConstParam

INTERNAL: Do not use. A constant parameter in a generic parameter list.

For example:

struct Foo <const N: usize>;
//          ^^^^^^^^^^^^^^

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

Gets the indexth attr of this const parameter (0-based).

getDefaultVal

Gets the default val of this const parameter, if it exists.

getName

Gets the name of this const parameter, if it exists.

getNumberOfAttrs

Gets the number of attrs of this const parameter.

getTypeRepr

Gets the type representation of this const parameter, if it exists.

isConst

Holds if this const parameter is const.

toString