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

Class Raw::NotNull

INTERNAL: Do not use. The !null pattern used in a pattern type to denote a non-null value. Pattern types are an experimental, mostly compiler-internal feature (used in the standard library for types such as NonZero and NonNull) and cannot be written directly in stable Rust; the example below uses rust-analyzer’s canonical builtin#pattern_type syntax:

type NonNull = builtin#pattern_type(*const () is !null);

Import path

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

Direct supertypes

Indirect supertypes

Predicates