rust-bitcoin-unsafe-fast/internals/src
Andrew Poelstra 65a5dfcd6b
Merge rust-bitcoin/rust-bitcoin#2585: Improve array macros
6ba7758b30 Improve array macros (Tobin C. Harding)

Pull request description:

  Currently we have two macros used when creating array wrapper types, one is in `internals` and the other in `bitcoin::internal_macros`. It is not immediately obvious what is what and why there are two.

  Improve the macros by:

  - Move the inherent functions to `impl_array_newtype`
  - Use `*_byte_array` for the names instead of `*_bytes`
  - Re-name the other macro to match what it now does

ACKs for top commit:
  apoelstra:
    ACK 6ba7758b30

Tree-SHA512: 36ed0fae0d28f24d29287062eb05bbc1e9e8b565f4ff41fd893503a25404ed8e185a34d75e398a8a660923ffda3b832b6157011598d5a75a5c4aafdffc74af2a
2024-05-28 16:25:59 +00:00
..
error Header change from arguments to parameters 2024-05-22 13:12:44 +01:00
array_vec.rs internals: Implement Default for ArrayVec 2024-02-28 13:19:43 +11:00
const_tools.rs Add tools that help with making code `const` 2023-12-15 01:37:33 +01:00
error.rs Removed //! spare line at end of headers 2024-05-22 12:23:57 +01:00
lib.rs Removed //! spare line at end of headers 2024-05-22 12:23:57 +01:00
macros.rs Merge rust-bitcoin/rust-bitcoin#2585: Improve array macros 2024-05-28 16:25:59 +00:00
parse.rs Use full path in all macro usage of Result 2024-01-18 19:11:01 +01:00
serde.rs Bump MSRV to Rust version 1.56.1 2023-11-23 06:20:02 +11:00