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

Into<Number> for any number type #6

Closed
Ballasi opened this issue Sep 15, 2022 · 0 comments
Closed

Into<Number> for any number type #6

Ballasi opened this issue Sep 15, 2022 · 0 comments

Comments

@Ballasi
Copy link
Owner

Ballasi commented Sep 15, 2022

For now, Into<Number> only allows i64 and f64.

This has been chosen as this is the largest common number type that features the greatest range of numbers.

However, people may work with other types and are fine using smaller number ranges.

This forces the user to cast it to the 64 bits version of the number.

This issue is a bit connected to #5 as if the int/float type is removed altogether with another it may need to add Into case for each common number types.

@Ballasi Ballasi closed this as completed Sep 16, 2022
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