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 as Range<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 the Range<T> type uses internally.
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 https://github.com/rwf2/Rocket/issues/2736#issuecomment-2002021860