Is this use of MaybeUninit sound?

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Access the most powerful time series database as a service
  • ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
  • rust

    Empowering everyone to build reliable and efficient software.

    Actually, this wouldn't work. It would have to be either MaybeUninit::uninit_array, which is experimental, or a macro expanding to an array of calls to MaybeUninit::uninit()...

  • smallqueue

    simple Rust queue on stack

    I threw together a smallqueue crate as an example of how to use a small amount of unsafe to make a heapless queue. I think my code is safe. The pattern you use from the MaybeUninit docs has been replaced in my code by array::from_fn(), which I think is easier to read and understand now that it exists.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts