Jump to content

Main public logs

Combined display of all available logs of JOHNWICK. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).

Logs
  • 00:44, 16 November 2025 PC talk contribs created page Initialize a large, fixed-size array with non-Copy types in RUST (Created page with "Summary
Need [Option<Box<T>>; N] without Copy or Clone? * Rust ≥ 1.79: let a: [Option<Box<T>>; N] = [const { None }; N]; * Rust ≥ 1.63: let a = std::array::from_fn(|_| None); (works with any initializer logic!) * Rust ≥ 1.38: const INIT: Option<Box<T>> = None; let a = [INIT; N]; (initializer must be a const-eval value) If you’ve ever tried to initialize a fixed-size array of a nullable, non-copyable type in Rust — say, Option<Box<Thing>>...")