rust-bitcoin-unsafe-fast/units/src
merge-script 532345bd11
Merge rust-bitcoin/rust-bitcoin#4508: units: Make block-related types have private inner fields
9a9b41008f units: Make block-related types have private inner fields (Tobin C. Harding)

Pull request description:

  We recently added a bunch of types in the `block` module that are wrappers around `u32`. When we did we slapped `pub` on the inner fields.

  Lets be more mindful and make the inner fields private. Note all these types have `to_u32`, `from_u32` and `From` in both directions.

ACKs for top commit:
  apoelstra:
    ACK 9a9b41008f72cb8a00cfed2890d839aea2ea27c7; successfully ran local tests

Tree-SHA512: d4719bef57944000142ec110d4701486b4a7e5c5b24426379ed596ad83555ca1f75191fe618cc62f12b78b9d7a1ac5d18eff96bc407c9688b1210529c25329b3
2025-05-16 19:54:28 +00:00
..
amount Fix expecting string for amount types 2025-05-14 12:31:16 +10:00
fee_rate Fix expecting string for fee_rate 2025-05-14 12:30:37 +10:00
locktime units: Manually implement serde traits 2025-05-14 14:31:39 +10:00
block.rs units: Make block-related types have private inner fields 2025-05-15 12:58:15 +10:00
fee.rs Merge rust-bitcoin/rust-bitcoin#4487: Automated nightly rustfmt (2025-05-11) 2025-05-12 16:31:13 +00:00
internal_macros.rs Create impl_mul_assign and impl_div_assign macros 2025-04-22 22:50:09 -05:00
lib.rs Merge rust-bitcoin/rust-bitcoin#4458: locktimes: replace `MtpAndHeight` type with pair of `BlockMtp` and `BlockHeight` 2025-05-07 22:32:16 +00:00
parse.rs Use parameters instead of arguments in rustdocs 2025-04-22 10:43:13 +01:00
result.rs Introduce `map` function for `NumOpResult` 2025-05-13 07:34:17 -05:00
time.rs units: Manually implement serde traits 2025-05-14 14:31:39 +10:00
weight.rs units: Manually implement serde traits 2025-05-14 14:31:39 +10:00