rust-bitcoin-unsafe-fast/internals/src
Tobin C. Harding 8c4fa5ec3d Remove into_bytes from impl_array_newtype
All the types that we define with `impl_array_newtype` are
`Copy` so the correct conversion method to get the underlying byte array
is `to_bytes`. We currently provide `into_bytes` as well as `to_bytes`,
with one of them calling `clone` - this is unnecessary and against
convention.

- Remove `into_bytes` and for `to_bytes` just return the inner field.
- Add a method that causes build to fail if `Copy` is not implemented.
2022-11-05 06:57:40 +11:00
..
hex internals: Run formatter 2022-09-20 14:24:47 +10:00
error.rs Introduce bitcoin-internals crate 2022-09-13 08:59:57 +10:00
lib.rs Move impl_array_newtype to bitcoin_internals 2022-10-20 06:14:59 +11:00
macros.rs Remove into_bytes from impl_array_newtype 2022-11-05 06:57:40 +11:00