rust-lang/rust — pull request #18536 by bjz (2014-11-02 12:19:41+00:00)
Title: Numeric string->{float, int} implementation cleanups

I have been meaning to clean up `std::num::strconv` for a long time. The module has been too generic and hard to understand, both for maintainers, and from an API perspective.

I have specialized the underlying string->{float, int} implementations into two separate functions. This will allow it to be more easily optimized in the future, and untangles the logic to make it more easier to understand. The `NumStrConv` trait has finally been removed - this trait was only used in `strconv`.

The function signatures were also simplified to take only a source string and a radix. `{f32, f64}::from_str_hex` was deprecated in favor of `FromStrRadix::from_str_radix`. I hope this is ok - these items are still experimental.

r? @aturon @alexcrichton