Crate array_bytes

Source
Expand description

A collection of Array/Bytes/Hex utilities with full No-STD compatibility.

Completely optimized for blockchain development. Especially the Polkadot-SDK.

Enums§

Error

Traits§

Dehexify
Dehexify the given hex to Self.
Hexify
Hexify Self.

Functions§

dehexify_array_then_into
Dehexify hex to a fixed length bytes vector then convert it to T where T: 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 where T: 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] to V where V: 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> to V where V: From<[T; N]>.

Type Aliases§

Result