mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-09 02:02:02 +00:00
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. |
||
---|---|---|
.. | ||
async-entry.rs | ||
bad-ignored-segments.rs | ||
catch_type_errors.rs | ||
catch.rs | ||
catchers.rs | ||
from_form_field.rs | ||
from_form_type_errors.rs | ||
from_form.rs | ||
responder-types.rs | ||
responder.rs | ||
route-attribute-general-syntax.rs | ||
route-path-bad-syntax.rs | ||
route-type-errors.rs | ||
route-warnings.rs | ||
routes.rs | ||
synchronize.sh | ||
typed-uri-bad-type.rs | ||
typed-uris-bad-params.rs | ||
typed-uris-invalid-syntax.rs | ||
uri_display_type_errors.rs | ||
uri_display.rs |