Skip to main content

ConversionArgMessageBuiltin

Trait ConversionArgMessageBuiltin 

Source
#[doc(hidden)]
pub trait ConversionArgMessageBuiltin { // Required method fn __mx_conversion_arg_message(&self, name: &str) -> Option<String>; }
Expand description

Whole-message probe, built-in arm: a match_arg choice error, as a MatchArgError or at the top of a SexpError (#[derive(MatchArg)]’s TryFromSexp returns one), words the whole argument error the way the wrapper’s R-side match_arg check (.miniextendr_match_arg) does, from the same MatchArgError::arg_error (#1767): 'mode' should be one of "fast", "slow", 'mode' must be of length 1, 'mode' must be NULL or a character vector. So a match_arg type converted without #[miniextendr(match_arg)] and one checked by the wrapper raise the same message.

A choice error inside an Either is not one: the Either names both of its arms ('x' must be one of "oral", "bolus", or a single double: got logical).

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§