Skip to content
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

Allow converting ux types into u128 (and u65 through u127) #81

Open
merehap opened this issue Oct 19, 2024 · 0 comments
Open

Allow converting ux types into u128 (and u65 through u127) #81

merehap opened this issue Oct 19, 2024 · 0 comments

Comments

@merehap
Copy link

merehap commented Oct 19, 2024

It is currently only possible to convert ux types to a maximum type of u64. There are no From impls into u65 through u128. Users of ux types need to manually do the conversion or call u128::from(u64::from(n)) .

Documentation showing that the maximum type that u2 can be converted into is u64: https://docs.rs/ux/latest/ux/struct.u2.html#impl-From%3Cu2%3E-for-u64

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

No branches or pull requests

1 participant