Skip to content

Guidance on manually implementing Any, getters etc #727

Answered by udoprog
VorpalBlade asked this question in Q&A
Discussion options

You must be logged in to vote

This would primarily be about missing bounds over S. We actually have a test case for a generic type using Any:

T: 'static + TryClone + Named + FromValue + ToValue + MaybeTypeOf + TypeOf,

It would be better if we added the bounds per trait as-needed instead of requiring that it's present over the whole type, since now it would have to be present for every impl block related to the type.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@udoprog
Comment options

Answer selected by VorpalBlade
@VorpalBlade
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants