pub fn lit_to_mir_constant(lit: &LitKind, ty: Option<Ty<'_>>) -> Constant
Parses a LitKind to a Constant.
LitKind
Constant