Skip to main content

coerce_arg_three_way

Function coerce_arg_three_way 

Source
pub fn coerce_arg_three_way<T: CoerceArg>(
    val: Option<&RValue>,
    param_name: &str,
) -> Result<RArg<T>, RError>
Expand description

Helper called by FromArgs derive-generated code for RArg<T> fields. Produces the three-way Missing/Null/Value from a raw Option<&RValue>.