rust-num / num-integer

Integer trait and functions for Rust
Apache License 2.0
180 stars 48 forks source link

Add Integer.dec() and Integer.inc() #53

Closed MiguelX413 closed 9 months ago

MiguelX413 commented 2 years ago

This PR seeks to solve https://github.com/rust-num/num-integer/issues/2. If merged, I also intend to manually implement these methods more optimally on BigInt and BigUint.

cuviper commented 1 year ago

Hi - thanks for the PR. Even as trivial as these are, can you add some examples? (which will also serve as tests)

Maybe also add "by one" to the doc description.

MiguelX413 commented 1 year ago

Hi - thanks for the PR. Even as trivial as these are, can you add some examples? (which will also serve as tests)

Maybe also add "by one" to the doc description.

Sure!

cuviper commented 9 months ago

I added the examples myself.