Skip to main content

ConstantExpr

Type Alias ConstantExpr 

Source
pub type ConstantExpr = Decorated<ConstantExprKind>;
Expand description

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.

Aliased Type§

pub struct ConstantExpr {
    pub ty: Ty,
    pub contents: Box<ConstantExprKind>,
}

Fields§

§ty: Ty§contents: Box<ConstantExprKind>