hir_ty::consteval

Function intern_const_scalar

source
pub fn intern_const_scalar(value: ConstScalar, ty: Ty) -> Const
Expand description

Interns a constant scalar with the given type