mirror of https://github.com/rwf2/Rocket.git
2727d7bb7b
This commit presents and applies a new technique for bounding type generics in derives. In short, for a generic `T` used in a field type of `Field<T>`, where an eventual bound of `Responder` required, the derive generates a bound of `Field<T>: Responder`. This removes the need for any manually provided bounds while simultaneously allowing more structures to typecheck. For example, generics in header components are now fully supported. |
||
---|---|---|
.. | ||
codegen | ||
http | ||
lib |