-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use TryFrom traits for utility types such as BitWidth #41
Comments
I have been trying to rework the way
To start off, I make I encountered a huge problem, however. When I change the signatures:
rustc no longer accepts
The reason is that there is a blanket impl for
|
I have finally fixed the problem. My only concern is that the generic function will be compiled into many functions, one for each kind of input. In the worst case, I can just have the generic function call an inner function, and the compiler will certainly inline the outer part into caller code. I think we already do that for the |
Have you read this? |
No description provided.
The text was updated successfully, but these errors were encountered: