Skip to content

FuzzyEq should include a method that accepts an epsilon value #3966

Closed
@brendanzab

Description

@brendanzab

The std::cmp::FuzzyEq trait should have a function that accepts a user defined epsilon value. I'm thinking something like:

pub trait FuzzyEq {
    pure fn fuzzy_eq(other: &self) -> bool;
    pure fn fuzzy_eq_eps(other: &self, epsilon: &self) -> bool;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions