macro_rules! define_validated_struct_modular {
(
$StructName:ident,
$PolicyType:ident,
$RawType:ident,
$doc:literal,
$display_string:literal
) => { ... };
}Expand description
Convenience macro (backward compatible): Defines a validated struct with all traits.
This macro provides the same functionality as the original monolithic
define_validated_struct! but uses the modular macros internally.
§Example
ⓘ
define_validated_struct_modular!(
RealValidated,
RealPolicy,
RawReal,
"A validated real number wrapper",
"{value}"
);