rust-lang/rust — pull request #19031 by nodakai (2014-11-17 14:29:47+00:00)
Title: libcore: add Int::pow() and a new trait Sq on top of Mul.

I personally find these methods convinient, but I'm not sure if they can appeal to everyone. I want to hear your opinion.

## Usage

`Sq::sq()`: replace `(x - mu) * (x - mu)` with `(x - mu).sq()`.

`Int::pow()`: Replace `std::num::pow(x, i)` with `x.pow(i)`.