Skip to main content

missing_default_param_docs

Function missing_default_param_docs 

Source
pub(crate) fn missing_default_param_docs(
    inputs: &Punctuated<FnArg, Comma>,
    per_param: &HashMap<String, ParamAttrs>,
    defaults: &HashMap<String, String>,
    formals: &Formals,
) -> HashMap<String, String>
Expand description

R formal → MISSING_DEFAULT_PARAM_DOC for each Missing<..> parameter of inputs that has a formal default in defaults (keyed by Rust name, as the per-parameter options are) and is no choice parameter of per_param, whose own line names the choices. The key is the formal formals gives the parameter, a declared formal included (#1842). Missing<Quoted> / Missing<Quosure> count too: their default is never evaluated either.