]> git.lizzy.rs Git - rust.git/commit
Have floating point functions take their parameters by value.
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>
Fri, 18 Apr 2014 03:49:37 +0000 (13:49 +1000)
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>
Sat, 19 Apr 2014 00:44:08 +0000 (10:44 +1000)
commitbed70a42ecf0747f924c813b3b375d5fd364ffc3
treee11c369051a4cc265995b2657aac14443e697eec
parentfe472020347d8eeb727f3a31e9cdc7268bb579f6
Have floating point functions take their parameters by value.

Make all of the methods in `std::num::Float` take `self` and their other parameters by value.

Some of the `Float` methods took their parameters by value, and others took them by reference. This standardises them to one convention. The `Float` trait is intended for the built in IEEE 754 numbers only so we don't have to worry about the trait serving types of larger sizes.

[breaking-change]
src/doc/guide-tasks.md
src/libnum/complex.rs
src/libnum/rational.rs
src/librand/distributions/gamma.rs
src/libstd/num/f32.rs
src/libstd/num/f64.rs
src/libstd/num/mod.rs
src/libstd/num/strconv.rs
src/libtest/stats.rs