Skip to content

Support conversions on NonZero<T>#36

Draft
dhardy wants to merge 2 commits into
masterfrom
push-xrkuqkruyoor
Draft

Support conversions on NonZero<T>#36
dhardy wants to merge 2 commits into
masterfrom
push-xrkuqkruyoor

Conversation

@dhardy

@dhardy dhardy commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

Proof-of-concept: supporting conversions on NonZero<T> where T: ZeroablePrimitive shouldn't be hard...

... but without being able to use trait ZeroablePrimitive this will have to be re-written using a macro and quite a lot of impls.

Fixes #33.

@dhardy

dhardy commented Nov 20, 2025

Copy link
Copy Markdown
Contributor Author

Rebased over #39.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

^^^^ the trait easy_cast::Conv<std::num::NonZero<u64>> is not implemented for std::num::NonZero<i64>

1 participant