Expand description
Builtin trait system: Builtin, FromArgs, CoerceArg, and argument decoding helpers.
R arguments have three states that matter: missing (not provided), NULL
(explicitly passed), or a value. This module models all three through the
RArg<T> enum and provides derive-friendly coercion traits.
Structs§
- Builtin
Info - Metadata for a trait-based builtin, generated by
#[derive(FromArgs)]. - Dots
- Captures all remaining positional arguments (
...in R).
Enums§
- RArg
- The three states of an R function argument.
Traits§
- Builtin
- A trait-based builtin function.
- Coerce
Arg - Coerce an RValue to a Rust type. Implemented for common R parameter types.
- From
Args - Decode R call arguments into a typed struct.
Functions§
- coerce_
arg - Helper called by
FromArgsderive-generated code. - coerce_
arg_ three_ way - Helper called by
FromArgsderive-generated code forRArg<T>fields. Produces the three-way Missing/Null/Value from a rawOption<&RValue>. - find_
arg - Find an argument by name (with partial matching) or positional index.
- find_
named_ arg - Find an argument by name only (exact match first, then unique partial match).
Used by the
FromArgsderive macro with a runtime positional counter.