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

Class Raw::PatternTypeRepr

INTERNAL: Do not use. A pattern type, constraining a type to values matching a pattern. Pattern types are an experimental, mostly compiler-internal feature and cannot be written directly in stable Rust; the example below uses rust-analyzer’s canonical builtin#pattern_type syntax:

type NonZero = builtin#pattern_type(u32 is 1..);

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getPat

Gets the pattern of this pattern type representation, if it exists.

getTypeRepr

Gets the type representation of this pattern type representation, if it exists.

toString