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
I don't think specialization needs to come into play for this. You can do the same thing that std::hash::Hash does, where there is a default behavior that goes with [Self], and the trait impl for u8 overrided it with a different behavior.
Thanks @dtolnay! I'll need to look into that. Right now the base impls of the Schema trait are in the repo, but I'll go look at std::hash::Hash, if you have any links handy I'm happy to take a look.
As we provide blanket trait impls for
&[T]
and[T; N]
, I'm not sure if there is a way to EVER produce a bytearray variant in the Schema derive.This is likely to be the case until some kind of stable specialization is possible.
The text was updated successfully, but these errors were encountered: