Function clippy_lints::consts::lit_to_constant
[−]
[src]
pub fn lit_to_constant(lit: &LitKind) -> Constant
parse a LitKind
to a Constant