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
This type is a SystemParam adapter which always has Self::State::Item == Self (ignoring lifetimes for brevity), no matter the argument SystemParam (P) (other than that P must be 'static)
(bold formatting by myself)
But, that constraint is not part of the bounds of P.
Was this forgotten? Are the docs incomplete?
It caused some confusion for me and I think there can be an improvement here, either for the docs or for the code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The docs say this:
(bold formatting by myself)
But, that constraint is not part of the bounds of
P
.Example code is bounding
'static
additionally for the derive macro despite that bound being not part of the generic parameter ofStaticSystemParam
:Was this forgotten? Are the docs incomplete?
It caused some confusion for me and I think there can be an improvement here, either for the docs or for the code.
Beta Was this translation helpful? Give feedback.
All reactions