rust-bitcoin-unsafe-fast/units/src/amount
Andrew Poelstra 82d9d1aeea
amount: rename `from_int_btc_const` unctions to hungarian ones
We have `from_int_btc_const` on both `Amount` and `SignedAmount` because
the "real" `from_int_btc` is generic over the integer type it accepts,
which means that it cannot be a constfn. But we do want a constfn.

However, just because `from_int_btc_const` exists for the sake of
constfn doesn't mean that that's what it *is*. So rename these methods
to reflect what they *are*.
2025-03-18 19:27:51 +00:00
..
error.rs Remove usage of impl_from_infallible in leaf crates 2025-01-02 07:51:21 +11:00
mod.rs 2025-03-16 automated rustfmt nightly 2025-03-16 01:25:25 +00:00
result.rs Enforce the MAX_MONEY invariant in amount types 2025-03-13 09:07:14 +11:00
serde.rs Enforce the MAX_MONEY invariant in amount types 2025-03-13 09:07:14 +11:00
signed.rs amount: rename `from_int_btc_const` unctions to hungarian ones 2025-03-18 19:27:51 +00:00
tests.rs amount: rename `from_int_btc_const` unctions to hungarian ones 2025-03-18 19:27:51 +00:00
unsigned.rs amount: rename `from_int_btc_const` unctions to hungarian ones 2025-03-18 19:27:51 +00:00
verification.rs Enforce the MAX_MONEY invariant in amount types 2025-03-13 09:07:14 +11:00