Also mark these methods as const. Because <u32 as From<u16>>::from is not available in const contexts, I had to cast u16 as u32. I try to avoid casts as much as I can, but in this case a cast seems unavoidable. Casting u16 as u32 should be safe on all architectures. |
||
---|---|---|
.. | ||
contrib | ||
src | ||
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.