1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
//^ //^ HEAD //^ //> HEAD -> SUPER use super::Array; //^ //^ CONVERSIONS //^ //> CONVERSIONS -> FROM FIXED TO VARIABLE impl<Type, const M: usize, const N: usize> From<[Type; N]> for Array<Type, M> { fn from(value: [Type; N]) -> Self { let mut array = Array::new(); array.extend(value); return array; } }