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.
Re-exports§
pub extern crate bincode;
pub extern crate serde_json;
Modules§
- A simplified
Copy
version ofarrayvec::ArrayVec
. - Variable length integer encoding A.K.A
CompactSize
. - Contains tools (workarounds) to make implementing
const fn
s easier. - Error
- Various macros used by the Rust Bitcoin ecosystem.
- Internal script related helper functions and types.
- serde
serde
Contains extensions ofserde
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. - Adds an implementation of
pub fn to_hex(&self) -> String
ifalloc
feature is enabled. - Creates an error type intended for string parsing errors.
- Expands code based on Rust version this is compiled under.
- serde_
round_ trip serde
andtest-serde
Does round trip test to/from serde value. - Implements
serde::Deserialize
by way ofFromStr
. - serde_
string_ impl serde
Implementsserde::Serialize
andDeserialize
by way ofDisplay
andFromStr
respectively. - Implements
serde::Serialize
by way ofDisplay
. - A combination macro where the human-readable serialization is done like serde_string_impl and the non-human-readable impl is done as a struct.
- Formats error.
Traits§
- A conversion trait for unsigned integer types smaller than or equal to 64-bits.