rust-bitcoin-unsafe-fast/api
merge-script 779768eff9
Merge rust-bitcoin/rust-bitcoin#3769: Change method return type for to_unsigned()
e13355318e Add From impl (yancy)
364e9ff775 Change method return type (yancy)
fdf3336ed5 Add unchecked variant (yancy)

Pull request description:

  Any SignedAmount can now be cast to Amount since the range is the same.  Specifically, the range for SignedAmount is (- 21 million, 21 million) while the range for Amount is (0, 21 million).  Therefore any value from Amount can be cast to a SignedAmount and it will work.  Note it's not the same and still requires checking when going from SignedAmount to Amount since Amount can't handle the negative range.

ACKs for top commit:
  tcharding:
    ACK e13355318e

Tree-SHA512: c016b51bdd87a12eb09d9c1a82699dad1e866bf96bd3235eeb131f216f02422acb992ddb3a8135af00bbc10e240178fde5e37fb7860d9e6eaf433cf917d4d16a
2024-12-29 14:58:47 +00:00
..
hashes Add api text files 2024-12-06 15:20:52 +11:00
io Add api text files 2024-12-06 15:20:52 +11:00
primitives api: Run just check-api 2024-12-12 16:28:49 +11:00
units Merge rust-bitcoin/rust-bitcoin#3769: Change method return type for to_unsigned() 2024-12-29 14:58:47 +00:00
README.md api: document the need of cargo nightly 2024-12-15 11:42:52 -03:00

README.md

API text files

Each file here lists the public API when built with some set of features enabled. To create these files run ../contrib/check-for-api-changes.sh:

Requires cargo-public-api, install with:

cargo +nightly install cargo-public-api --locked

ref: https://github.com/enselic/cargo-public-api