parity-common
parity-common copied to clipboard
uint: add abs_diff
Having a abs_diff
would be great. It can be the same API as the one from Rust introduced in 1.60.0: https://doc.rust-lang.org/std/primitive.usize.html#method.abs_diff. Would be great it we could make it const, but not sure how tricky that is.