rust-num / num-traits

Numeric traits for generic mathematics in Rust
Apache License 2.0
731 stars 135 forks source link

Add Modular Inverse Trait #96

Closed goldenMetteyya closed 5 years ago

cuviper commented 5 years ago

Is this a work in progress? I would at least expect an implementation of the trait for the primitive types.

Since this is specific to integers, it probably belongs in the num-integer crate. You can see that rust-num/num-integer#10 even started an inverse function.

cuviper commented 5 years ago

Please take this to num-integer if you want to work further.