mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-10 11:39:05 +00:00
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. |
||
---|---|---|
.. | ||
ui-fail | ||
ui-fail-nightly | ||
ui-fail-stable | ||
async-entry.rs | ||
async-routes.rs | ||
catcher.rs | ||
expansion.rs | ||
from_form_field.rs | ||
from_form.rs | ||
responder.rs | ||
route-data.rs | ||
route-format.rs | ||
route-ranking.rs | ||
route-raw.rs | ||
route.rs | ||
segment-ignore.rs | ||
typed-uris.rs | ||
ui-fail.rs | ||
uri_display.rs |