rust-bitcoin-unsafe-fast/bitcoin/src/psbt
Tobin C. Harding 6244cb75fa
Introduce monadic AmountOpResult
We would like to return an error when doing math ops on amount types.
We cannot however use the stdlib `Result` or `Option` because we want to
implement ops on the result type.

Add an `AmountOpResult` type. Return this type from all math operations
on `Amount` and `SignedAmount`.

Implement `core::iter::Sum` for the new type to allow summing iterators
of amounts - somewhat ugly to use, see tests for example usage.
2025-02-10 10:06:59 +11:00
..
map Make capitalization of SegWit uniform in rustdocs 2024-12-17 14:28:28 +00:00
error.rs 2025-01-12 automated rustfmt nightly 2025-01-12 01:23:13 +00:00
macros.rs Use fully qualified path in macro 2024-10-28 09:08:26 +11:00
mod.rs Introduce monadic AmountOpResult 2025-02-10 10:06:59 +11:00
raw.rs Standardize wording to `constructs a new` 2024-11-05 13:02:26 +00:00
serialize.rs script: deprecate to_bytes 2024-11-01 07:09:53 +11:00