Urgau · GitHub

Feature gate: #![feature(option_array_transpose)]

This is a tracking issue for the option_array_transpose.

This feature permits going from an [Option<T>; N] to Option<[T; N]>.

Public API

// core::option
impl<T, const N: usize> [Option<T>; N] {
    fn transpose(self) -> Option<[T; N]>;
}

Steps / History

Unresolved Questions

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Read the original on github.com ↗