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
We have that ComplicatedType has a DeserializableSeed implementation for a seed of type &Seed. Therefore, struct B should have a DeserializableSeed implementation for a seed of type &Seed. However, when I try to do so:
this is an error because we are impling the same trait for the same seed twice. What's a good way to go about this?
More generally, is it possible to automatically derive (or minimize boilerplate for) DeserializeSeed for some type T wrt. a particular seed S when all of the inner types of T are already either Deserialize or DeserializeSeed wrt. S?
The text was updated successfully, but these errors were encountered:
Consider this struct:
We have that
ComplicatedType
has aDeserializableSeed
implementation for a seed of type&Seed
. Therefore,struct B
should have aDeserializableSeed
implementation for a seed of type&Seed
. However, when I try to do so:this is an error because we are impling the same trait for the same seed twice. What's a good way to go about this?
More generally, is it possible to automatically derive (or minimize boilerplate for)
DeserializeSeed
for some typeT
wrt. a particular seedS
when all of the inner types ofT
are already eitherDeserialize
orDeserializeSeed
wrt.S
?The text was updated successfully, but these errors were encountered: