Module ibc_test_framework::util::array
source · Expand description
Helpers for manipulating fixed-sized arrays.
Functions
- Asserts that a nested vector
Vec<Vec<T>>
has the same dimension in its inner vectors. - Converts a fixed-sized nested array
[[T; SIZE]; SIZE]
into a nested vectorVec<Vec<T>>
. - Map the elements in the fixed-sized array
[[T; SIZE]; SIZE]
. - Converts a dynamic-sized vector
Vec<T>
into a fixed-sized array[T; SIZE]
. Fails if the vector is not the same length asSIZE
. - Converts a dynamic-sized nested vector
Vec<Vec<T>>
into a fixed-sized nested array[[T; SIZE]; SIZE]
. Fails if the nested vector is not ofSIZE
xSIZE
length.