| Crates.io | modmath |
| lib.rs | modmath |
| version | 0.1.2 |
| created_at | 2025-02-15 21:23:19.441531+00 |
| updated_at | 2025-08-11 05:08:43.882161+00 |
| description | Modular math implemented with traits. |
| homepage | |
| repository | https://github.com/kaidokert/modmath-rs |
| max_upload_size | |
| id | 1557102 |
| size | 221,683 |
Yet another mod math implementation, but written for traits. All functions
are free functions that are constrainted by core::ops:: and num_traits::
traits.
Implements:
The code isn't intended to be fast or efficient, just as generic as possible to work with multiple implementations.
Note: While const traits are not yet stable and commonplace, this cannot
be verify efficient. In almost all real world code you'll want to direcyl use
crates that implement big integers with const functions.
Tested with num-bigint, crypto-bigint, bnum, ibig
and fixed-bigint crates.