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

Class Raw::IdentPat

INTERNAL: Do not use. A binding pattern. For example:

match x {
    Option::Some(y) => y,
    Option::None => 0,
};
match x {
    y@Option::Some(_) => y,
    Option::None => 0,
};

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

Gets the indexth attr of this ident pattern (0-based).

getName

Gets the name of this ident pattern, if it exists.

getNumberOfAttrs

Gets the number of attrs of this ident pattern.

getPat

Gets the pattern of this ident pattern, if it exists.

isMut

Holds if this ident pattern is mut.

isRef

Holds if this ident pattern is reference.

toString