Macro structform::impl_text_input_with_stringops [−][src]
Implements ParseAndFormat<$type> for $text_input<$type>
, and also
implements ParseAndFormat<Option<$type>>> for $text_input<Option<$type>>
.
This will parse by trimming the string input and then calling
str::parse
. If the input string is empty after trimming, then
parse will return a ParseError::Required
for the
ParseAndFormat<$type>
case, and return None
for the
ParseAndFormat<Option<$type>>
case.
Formatting is done using std::string::ToString
.