Skip to main content

array_from_fn

Function array_from_fn 

Source
pub fn array_from_fn<T, const N: usize>(f: impl FnMut(usize) -> T) -> [T; N]
Expand description

Helper function to create arrays without requiring Copy