You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another idea. All single entries to collections that are not a generic or numeric type is automatically given the Into treatment.
This fixes Strings and also gives the user the opportunity to define their own intermediate type.
For instance, if trying to construct a HeaderName you want to accept &str, String or HeaderName.
Define an enum:
Currently if a collection has elements that are
E: Into<Something>
then the first time that the field is set the builder will fix the type of E.This could be improved by making the transient collection of type
<Something>
and performing the into conversion when the parameter is set.The downside is that more fancy generic manipulation will need to be done.
The text was updated successfully, but these errors were encountered: