Skip to content

Implement missing functionality for Float/FloatCore #340

@tyilo

Description

@tyilo

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions