pub fn vec_to_array<T, const N: usize>(
    v: Vec<T>
) -> Result<[T; N], Box<dyn Error>>
Expand description

Formats an vector into an array dynamically.

Arguments

  • v - vector to format

Returns

  • Array - the transformed array