If you don't necessarily need a new fixed-size array, consider using Iterator::map ... None); let a = [1, 2, 3]; let b = a.try_map(NonZeroU32::new); let c ...
確定! 回上一頁