diff options
Diffstat (limited to 'src/libcore/num/num.rs')
| -rw-r--r-- | src/libcore/num/num.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/num/num.rs b/src/libcore/num/num.rs index 3e43ebfef12..30a1213f7ff 100644 --- a/src/libcore/num/num.rs +++ b/src/libcore/num/num.rs @@ -131,9 +131,9 @@ pub trait Exponential { fn log(&self) -> Self; fn log2(&self) -> Self; fn log10(&self) -> Self; -} -pub trait Hyperbolic: Exponential { + // The Hyperbolic Functions are trivially implemented in terms of `exp`, so it's simpler + // to group them within this trait. In the future these would have default implementations. fn sinh(&self) -> Self; fn cosh(&self) -> Self; fn tanh(&self) -> Self; @@ -146,7 +146,7 @@ pub trait Real: Signed + Fractional + Algebraic + Trigonometric - + Hyperbolic { + + Exponential { // Common Constants // FIXME (#5527): These should be associated constants fn pi() -> Self; |
