Crate bitcoin_internals
source ·Expand description
§Rust Bitcoin Internal
This crate is only meant to be used internally by crates in the rust-bitcoin ecosystem.
Modules§
- A simplified
Copy
version ofarrayvec::ArrayVec
. - Contains tools (workarounds) to make implementing
const fn
s easier. - Error
- Various macros used by the Rust Bitcoin ecosystem.
- Contains extensions of
serde
and internal reexports.
Macros§
- Concatenates two byte slices or byte arrays (or combination) to a single array.
- Enables const fn in specified Rust version
- Asserts a boolean expression at compile time.
- Copies first
$len
bytes from$slice
and returns them as an array. - Implements
Debug
by calling through toDisplay
. - Implements standard array methods for a given wrapper type.
- Derives
From<core::convert::Infallible>
for the given type. - Implements conversions from various string types.
- Implements conversions from various string types as well as
serde
(de)serialization. - Creates an error type intended for string parsing errors.
- Formats error.