Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
brendanzab opened this issue Nov 14, 2012 · 1 comment
Closed

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

brendanzab opened this issue Nov 14, 2012 · 1 comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@brendanzab
Copy link
Member

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;
}
@catamorphism
Copy link
Contributor

Fixed in 5e77d55

RalfJung pushed a commit to RalfJung/rust that referenced this issue Oct 15, 2024
Do not store synchronization primitive IDs in adressable memory

We shouldn't store this in a place where the program can mess with it.

Fixes rust-lang/miri#1649

Blocked by rust-lang#131593
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

2 participants