Expand description
A collection of Array/Bytes/Hex utilities with full No-STD compatibility.
Completely optimized for blockchain development. Especially the Polkadot-SDK.
Enums§
Traits§
Functions§
- dehexify_
array_ then_ into - Dehexify hex to a fixed length bytes vector then convert it to
T
whereT: From<[u8; N]>
. - dehexify_
slice_ mut - Dehexify hex into a mutable slice source.
- dehexify_
vec_ then_ into - Dehexify hex to a bytes vector then convert it to
T
whereT: From<Vec<u8>
. - hexify_
hex_ bytes - Hexify the bytes which are already in hex.
- prefix_
with - Prefixes the given element to the given array/slice/vector to make it a fixed-size array of
length
N
. - slice2array
- Convert
&[T]
to[T; N]
. - slice2array_
ref - Convert
&[T]
to&[T; N]
. - slice_
n_ into - Convert
&[T]
toV
whereV: From<[T; N]>
. - suffix_
with - Suffixes the given element to the given array/slice/vector to make it a fixed-size array of
length
N
. - vec2array
- Convert
Vec<T>
to[T; N]
. - vec_
n_ into - Convert
Vec<T>
toV
whereV: From<[T; N]>
.