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
TwhereT: 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
TwhereT: 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]toVwhereV: 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>toVwhereV: From<[T; N]>.