rust-bitcoin-unsafe-fast/src/util
sanket1729 bcc923c03a
Merge rust-bitcoin/rust-bitcoin#716: Add `amount::Display` - make formatting configurable
4f1200d629 Added `amount::Display` - configurable formatting (Martin Habovstiak)

Pull request description:

  This significatnly refactors the formatting code to make formatting more
  configurable. The main addition is the `Display` type which is a
  builder that can configure denomination or other things (possibly more
  in the future).

  Further, this makes all representations of numbers minimal by default,
  so should be documented as a possibly-breaking change.

  Because of the effort to support all other `fmt::Formatter` options this
  required practically complete rewrite of `fmt_satoshi_in`. As a
  byproduct I took the opportunity of removing one allocation from there.

  Closes #709

ACKs for top commit:
  tcharding:
    ACK 4f1200d629
  dr-orlovsky:
    ACK 4f1200d629
  sanket1729:
    ACK 4f1200d629

Tree-SHA512: 3fafdf63fd720fd4514e026e9d323ac45dfcd3d3a53a4943178b1e84e4cf7603cb6235ecd3989d46c4ae29453c4b0bb2f2a5996fbddf341cd3f68dc286062144
2022-04-30 15:27:19 -07:00
..
psbt Merge rust-bitcoin/rust-bitcoin#952: Remove MSRV todo comments 2022-04-27 15:52:16 -07:00
address.rs Merge rust-bitcoin/rust-bitcoin#839: feat: Add Address.is_related_to_*_key() 2022-03-28 17:29:48 +00:00
amount.rs Merge rust-bitcoin/rust-bitcoin#716: Add `amount::Display` - make formatting configurable 2022-04-30 15:27:19 -07:00
base58.rs Use conventional spacing for default type parameters 2022-03-18 10:40:51 +11:00
bip32.rs Fix `no_std` MSRV 2022-04-25 11:14:41 -05:00
bip143.rs Rename SigHash -> Sighash 2022-03-31 09:42:52 +11:00
bip158.rs Remove unnecessary 'as' statement 2022-04-21 12:50:22 +10:00
ecdsa.rs Rename NonStandardSigHashType -> NonStandardSighashType 2022-03-31 09:42:18 +11:00
endian.rs std -> core 2021-06-11 17:28:04 +02:00
hash.rs Use conventional spacing for default type parameters 2022-03-18 10:40:51 +11:00
key.rs Remove unused Write as _fmtWrite 2022-04-21 12:37:56 +10:00
merkleblock.rs Use less vertical lines 2022-03-14 13:52:13 +11:00
misc.rs Refactor whitespace 2022-03-14 13:51:50 +11:00
mod.rs Delete contract hash module 2022-03-10 08:58:25 +11:00
schnorr.rs Use secp256k1 qualified path instead of underscore 2022-04-21 12:50:22 +10:00
sighash.rs Fix code comments referring to sighash 2022-03-31 09:44:22 +11:00
taproot.rs Use chunks_exact 2022-04-27 07:59:40 +10:00
uint.rs Use brace not parenth fo macro arm 2022-03-14 13:52:13 +11:00