Skip to main content
Module const_kind
rustc_
type_
ir
1.98.0-nightly
(b354133fb 2026-06-03)
Module const_
kind
Module Items
Structs
Enums
In crate rustc_
type_
ir
rustc_type_ir
Module
const_
kind
Copy item path
Source
Structs
§
Const
Vid
A
const
v
ariable
ID
.
Unevaluated
Const
An unevaluated (potentially generic) constant used in the type-system.
Enums
§
Anon
Const
Kind
Const
Kind
Represents a constant in Rust.
Infer
Const
An inference variable for a const, for use in const generics.
Unevaluated
Const
Kind
UnevaluatedConstKind is extremely similar to AliasTyKind, and likely should be reasoned about and handled in very similar ways. The documentation for AliasTyKind/etc. may be helpful when learning about UnevaluatedConstKind.
ValTree
Kind
This datastructure is used to represent the value of constants used in the type system.