Skip to main content

unevaluated_param

Function unevaluated_param 

Source
pub(crate) fn unevaluated_param(ty: &Type) -> Option<UnevaluatedParam>
Expand description

Detect an unevaluated-argument parameter type, matched on the last path segment like the other markers: Quoted, Quosure, or one of them as the type argument of Missing<..>. Any other position (Option<Quoted>, &Quoted) is not one; mentions_unevaluated_marker lets the caller refuse it.