dashu-base
Common trait definitions for the dashu mathematics crates. See Docs.rs for the full documentation.
Quick example
The traits are implemented on primitive integers and on every dashu big-number type alike, so generic numeric code works across the whole library:
use ;
use UBig;
// ...on primitive integers
assert_eq!;
let = 17u8.div_rem;
assert_eq!;
// ...and on every dashu big-number type (UBig, FBig, RBig, ...)
assert_eq!;
let = from.div_rem;
assert_eq!;
// ExtendedGcd also returns the Bézout coefficients
let = 12u8.gcd_ext;
assert_eq!;
assert_eq!; // 2 = 12·1 + 10·(-1)
License
See the top-level readme.