Function ibc_test_framework::util::array::try_into_array
source · pub fn try_into_array<T, const SIZE: usize>(
list: Vec<T>
) -> Result<[T; SIZE], Error>
Expand description
Converts a dynamic-sized vector Vec<T>
into a fixed-sized array
[T; SIZE]
. Fails if the vector is not the same length as SIZE
.