Function constness

Source
fn constness(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Constness
Expand description

Checks whether a function-like definition is considered to be const.