Implement FromForm
for Range
#2759
Labels
accepted
An accepted request or suggestion
good first issue
Beginner-friendly for new contributors
help wanted
Contributions to this issue are needed
request
Request for new functionality
Milestone
Hi, I'm back, I had to temporarily step away from Foss, but i'm back and happy to respond.
In terms of what you said: I ment
FromFormField
, which would not work anyway asRange<T>
would most likely have to be implemented over two fields.In terms of what it should look like in a form, you would most likely have two fields in the form
<range_var_name>.start
and<range_var_name>.end
. I chose those names as that is what theRange<T>
type uses internally.Example HTML Rendered:
Example HTML Source:
Example Rocket Function:
And it would of course also work outside of a struct:
Originally posted by @RuboGubo in #2736 (comment)
The text was updated successfully, but these errors were encountered: