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§
- array_
vec - A simplified
Copy
version ofarrayvec::ArrayVec
. - compact_
size - Variable length integer encoding A.K.A
CompactSize
. - const_
tools - Contains tools (workarounds) to make implementing
const fn
s easier. - error
- Error
- macros
- Various macros used by the Rust Bitcoin ecosystem.
- script
- Internal script related helper functions and types.
- serde
serde
- Contains extensions of
serde
and internal reexports.
Macros§
- concat_
bytes_ to_ arr - Concatenates two byte slices or byte arrays (or combination) to a single array.
- cond_
const - Enables const fn in specified Rust version
- const_
assert - Asserts a boolean expression at compile time.
- copy_
byte_ array_ from_ slice - Copies first
$len
bytes from$slice
and returns them as an array. - debug_
from_ display - Implements
Debug
by calling through toDisplay
. - impl_
array_ newtype - Implements standard array methods for a given wrapper type.
- impl_
from_ infallible - Derives
From<core::convert::Infallible>
for the given type. - impl_
parse - Implements conversions from various string types.
- impl_
parse_ and_ serde - Implements conversions from various string types as well as
serde
(de)serialization. - impl_
to_ hex_ from_ lower_ hex - Adds an implementation of
pub fn to_hex(&self) -> String
ifalloc
feature is enabled. - parse_
error_ type - Creates an error type intended for string parsing errors.
- rust_
version - Expands code based on Rust version this is compiled under.
- serde_
round_ trip serde
andtest-serde
- Does round trip test to/from serde value.
- serde_
string_ deserialize_ impl serde
- Implements
serde::Deserialize
by way ofFromStr
. - serde_
string_ impl serde
- Implements
serde::Serialize
andDeserialize
by way ofDisplay
andFromStr
respectively. - serde_
string_ serialize_ impl serde
- Implements
serde::Serialize
by way ofDisplay
. - serde_
struct_ human_ string_ impl serde
- 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.
- write_
err - Formats error.
Traits§
- ToU64
- A conversion trait for unsigned integer types smaller than or equal to 64-bits.