macro_rules! impl_numeric_input_with_default_with_stringops {
($numeric_input: ident, $type_name: literal, $type: ty, $underlying_numeric_type: ty) => { ... };
($numeric_input: ident, $type_name: literal, $type: ty, $underlying_numeric_type: ty, $min: expr, $max: expr) => { ... };
}
Expand description
Implements ParseAndFormat<$type> for $numeric_input<$type>
.
This works the same as impl_numeric_input_with_stringops
, except if input
string is empty after trimming, then parse will return $type::default().