Skip to main content

rekey_params

Function rekey_params 

Source
fn rekey_params<V>(
    options: HashMap<String, V>,
    renamed: &[RenamedParam],
    what: &str,
    span: Span,
) -> Result<HashMap<String, V>>
Expand description

options, keyed by parameter names as the impl method spells them, keyed by the declared names. A key may also be the declared name already; one that names no parameter stays, for the caller’s check to refuse. Naming one parameter both ways is an error at span.