Skip to content

Commit

Permalink
Require that ApproxEq::Epsilon == Self for Reals.
Browse files Browse the repository at this point in the history
  • Loading branch information
c29m committed Oct 30, 2016
1 parent 98bc982 commit 672ebcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/general/real.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use general::{Field, SubsetOf, SupersetOf};
// allow a blancket impl: impl<T: Clone> SubsetOf<T> for T { ... }
pub trait Real: SubsetOf<Self> + SupersetOf<f64> + Field + Copy + Num + FromPrimitive +
Neg<Output = Self> + AddAssign + MulAssign + SubAssign + DivAssign +
ApproxEq + PartialOrd {
ApproxEq<Epsilon = Self> + PartialOrd {
fn floor(self) -> Self;
fn ceil(self) -> Self;
fn round(self) -> Self;
Expand Down

0 comments on commit 672ebcc

Please sign in to comment.