fn effective_r_defaults(
method: &ParsedMethod,
c_ident: &str,
) -> HashMap<String, String>Expand description
Effective R-formal defaults for a method.
Layers defaults in priority order:
#[miniextendr(match_arg)]→ ALWAYS a write-time placeholder that the cdylib resolves toc("a", "b", ...)at package-load time. Any user- supplieddefault = "X"is consumed elsewhere (rotates X to the front of the choice list at write time) rather than overriding the formal.#[miniextendr(choices("a", "b", ...))]→c("a", "b", ...)formal default.- User-provided
#[miniextendr(defaults(param = "..."))]for non-match_arg params.