Skip to main content
Module constant_utils
charon_
driver
0.1.184
Module constant_
utils
Module Items
Modules
Structs
Enums
Type Aliases
In charon_
driver::
hax
charon_driver
::
hax
Module
constant_
utils
Copy item path
Source
Re-exports
§
pub use self::
uneval
::*;
Modules
§
uneval
🔒
Reconstruct structured expressions from rustc’s various constant representations.
Structs
§
Constant
Field
Expr
Variant
Idx
The
source-order
index of a variant in a type.
Enums
§
Constant
Expr
Kind
The subset of [Expr] that corresponds to constants.
Constant
Int
Constant
Literal
Variant
Kind
Describe the kind of a variant
Type Aliases
§
Constant
Expr
Rustc has different representation for constants: one for MIR ([
rustc_middle::mir::Const
]), one for the type system ([
rustc_middle::ty::ConstKind
]). For simplicity hax maps those two construct to one same
ConstantExpr
type.
Constant
Kind