macro_rules! impl_value_on_primitive_ish { ($trait:ident, $subject:ident) => { ... }; }
Expand description
Macro to generate an impl Value
for the given type $subject
.
The type $subject
must be “primitive-ish”,
i.e. something that can be converted Into a Primitive and TryFrom a primitive