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

Implement missing functionality for Float/FloatCore #340

Open
tyilo opened this issue Oct 16, 2024 · 0 comments
Open

Implement missing functionality for Float/FloatCore #340

tyilo opened this issue Oct 16, 2024 · 0 comments

Comments

@tyilo
Copy link

tyilo commented Oct 16, 2024

My project currently uses both num_traits::FloatCore and the funty::Floating traits, as neither have all the functionality that I need.

I would like to drop the funty dependency, but this requires the following missing items:

pub trait Float {
    const MANTISSA_DIGITS: u32;
    type Bits: One + WrappingAdd + WrappingSub + LowerHex; // Probably need a better bound
    fn to_bits(self) -> Self::Bits;
    fn from_bits(bits: Self::Bits) -> Self;
}
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