Skip to main content

builtin_formals

Function builtin_formals 

Source
fn builtin_formals(
    args: &[RValue],
    _: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

formals(fn) — return the formal parameter list of a function as a named list.

For closures, returns param names with defaults. For trait-based builtins with @param docs, returns the parameter names. Otherwise returns NULL.