Skip Navigation
Rust Container Cheat Sheet
  • Because when T is !Sized, the layout is different, it looks more like the layout of &[T].

  • Rust Container Cheat Sheet
  • This is outdatded. Mutexes don't allocate anymore. That's how Mutex::new can be const.

  • How to work with !Sized types in Rust
    sgued.fr How to work with !Sized types in Rust

    <p>Sizedness in Rust is a peculiar topic. I recently found myself having to work with unsized types when trying to reduce the use of <code>const</code> generics in the <code>heapless</code> crate. Here I will document the approaches I considered and the pros and cons of each of them.</p>

    0