-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: support NonZero*
scalar types
#3244
Conversation
I implemented everything you suggested! Anything else missing? |
Since #3126 was merged, you'll need to rebase and fix the compilation errors. |
This commits adds `Type`, `Encode`, and `Decode` impls for all the `NonZero*` types from the standard library. They are implemented as direct proxies to their primitive counterparts, except that when decoding, the values are checked to not be zero.
* feat: support `NonZero*` scalar types This commits adds `Type`, `Encode`, and `Decode` impls for all the `NonZero*` types from the standard library. They are implemented as direct proxies to their primitive counterparts, except that when decoding, the values are checked to not be zero. * fixup!: remove `non-zero` cargo feature * fixup!: make `non-zero` module private * fixup!: rebase and fix trait impls
@AlphaKeks @abonander hi! I used Why? Is it a bug? Should I create a new issue for this? |
You need to tell it to use |
Thank you! |
* feat: support `NonZero*` scalar types This commits adds `Type`, `Encode`, and `Decode` impls for all the `NonZero*` types from the standard library. They are implemented as direct proxies to their primitive counterparts, except that when decoding, the values are checked to not be zero. * fixup!: remove `non-zero` cargo feature * fixup!: make `non-zero` module private * fixup!: rebase and fix trait impls
* feat: support `NonZero*` scalar types This commits adds `Type`, `Encode`, and `Decode` impls for all the `NonZero*` types from the standard library. They are implemented as direct proxies to their primitive counterparts, except that when decoding, the values are checked to not be zero. * fixup!: remove `non-zero` cargo feature * fixup!: make `non-zero` module private * fixup!: rebase and fix trait impls
This commits adds
Type
,Encode
, andDecode
impls for all theNonZero*
types from the standard library. They are implemented as direct proxies to their primitive counterparts, except that when decoding, the values are checked to not be zero.fixes #1926