new_boxed_option_slice<T>(size: usize) -> Box<[Option<T>]>1 pub fn new_boxed_option_slice<T>(size: usize) -> Box<[Option<T>]> { 2 let mut vector = Vec::with_capacity(size); 3 for _ in 0 .. size { 4 vector.push(None) 5 } 6 vector.into_boxed_slice() 7 } 8