zephyr_sdk::utils

Function to_array

source
pub fn to_array<T, const N: usize>(v: Vec<T>) -> [T; N]
Expand description

Converts a vector into an array. Panics if the provided array size != vector’s length.