-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schema: How to support niches like "byte array"? #147
Comments
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 |
Thanks @dtolnay! I'll need to look into that. Right now the base impls of the |
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: