rust-num / num-traits

Numeric traits for generic mathematics in Rust
Apache License 2.0
719 stars 133 forks source link

Make `float::Float::integer_decode` DRY #328

Open mtilda opened 3 months ago

mtilda commented 3 months ago

Blocked by #327

Motivation

The trait method float::Float::integer_decode invokes one of the functions integer_decode_f32 or integer_decode_f64 depending on the implementation. These functions share a lot of code, so I would like to refactor them to use the same underlying source.

Considerations

Status

This is a work in progress, as indicated by the fact that it is a Draft PR. Comments and suggestions are welcome, but not expected.