macro_rules! impl_attrvalue {
($($ty:ty),+ $(,)?) => { ... };
}
Expand description
Macro to implement AttrValue for types that implement ToString and FromStr.
This macro provides a convenient way to implement AttrValue for types that already have string conversion capabilities through the standard ToString and FromStr traits.
§Usage
ⓘ
impl_attrvalue!(i32, u64, f64);
This will generate AttrValue implementations for i32, u64, and f64 that use their ToString and FromStr implementations for display and parsing.