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
Copyversion ofarrayvec::ArrayVec. - Contains tools (workarounds) to make implementing
const fns easier. - Error
- Various macros used by the Rust Bitcoin ecosystem.
- Contains extensions of
serdeand 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
$lenbytes from$sliceand returns them as an array. - Implements
Debugby 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.