Crate satsnet_internals

Source
Expand description

§Rust Bitcoin Internal

This crate is only meant to be used internally by crates in the rust-bitcoin ecosystem.

Modules§

array_vec
A simplified Copy version of arrayvec::ArrayVec.
const_tools
Contains tools (workarounds) to make implementing const fns easier.
error
Error
macros
Various macros used by the Rust Bitcoin ecosystem.
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 to Display.
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.
parse_error_type
Creates an error type intended for string parsing errors.
write_err
Formats error.