Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

More friendly conversion using From trait. #4

Open
katyo opened this issue Oct 16, 2019 · 1 comment
Open

More friendly conversion using From trait. #4

katyo opened this issue Oct 16, 2019 · 1 comment

Comments

@katyo
Copy link

katyo commented Oct 16, 2019

I like this crate mainly because it support arbitrary exponent which is not constrained only 0..base^bits range.

But weak side is missing developer friendly conversion methods.
I mean two different aspects here:

  1. Conversion between core rust numeric types such as u*, i*, f* and Fix type.
  2. Conversion between Fix types with different bits, base and exponent.

I think in this case it is pretty usable to implement core rust conversion traits: From, TryTrom, Into, TryInto.

@katyo
Copy link
Author

katyo commented Oct 16, 2019

I trying fix this here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant