rust-bitcoin-unsafe-fast/src
Martin Habovstiak 4f1200d629 Added `amount::Display` - configurable formatting
This significatnly refactors the amount formatting code to make
formatting more configurable. The main addition is the
`amount::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
2022-03-14 19:03:03 +01:00
..
blockdata Simplify read_scriptbool 2022-01-26 16:52:41 +11:00
consensus Put rustdocs above attributes 2022-01-06 13:04:47 +11:00
network Remove trailing spaces from 'address.rs' 2022-01-17 10:03:17 +02:00
policy Clean up module level rustdocs 2021-11-06 10:59:53 +11:00
util Added `amount::Display` - configurable formatting 2022-03-14 19:03:03 +01:00
hash_types.rs Clean up module level rustdocs 2021-11-06 10:59:53 +11:00
internal_macros.rs Put rustdocs above attributes 2022-01-06 13:04:47 +11:00
lib.rs Re-export public map types from root level 2022-01-18 12:56:47 +11:00
serde_utils.rs Clean up module level rustdocs 2021-11-06 10:59:53 +11:00
test_macros.rs Clean up module level rustdocs 2021-11-06 10:59:53 +11:00