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

Class Raw::DerefPat

INTERNAL: Do not use. A deref pattern, matching the value behind a smart pointer. This is an experimental Rust feature that cannot be written directly in stable Rust; the example below uses rust-analyzer’s canonical builtin#deref syntax for such patterns:

match x {
    builtin#deref(y) => y,
    _ => 0,
};

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getPat

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

toString