Skip to main content

match_formal

Function match_formal 

Source
fn match_formal<T: MatchArg>(
    sexp: SEXP,
    formal: &[&str],
) -> Result<T, MatchArgError>
Expand description

match_arg_from_sexp for a parameter whose R formal is formal, a permutation of T::CHOICES: its first element is what NULL and the formal itself select. Matching a string does not depend on the order.