Adds an implementation of div by NonZeroU64 for Amount, FeeRate, and Weight types. Also adds a div by NonZeroI64 for SignedAmount. The operations helps to prevent div-by-zero errors at compile time, rather than runtime. It follows same pattern as existing div operations but leverages safety guarantees offered by non-zero types |
||
---|---|---|
.. | ||
contrib | ||
src | ||
tests | ||
CHANGELOG.md | ||
Cargo.toml | ||
README.md |
README.md
Bitcoin Units
This crate provides basic Bitcoin numeric units such as Amount
.
Minimum Supported Rust Version (MSRV)
This library should always compile with any combination of features on Rust 1.63.0.
Licensing
The code in this project is licensed under the Creative Commons CC0 1.0 Universal license. We use the SPDX license list and SPDX IDs.