Skip Navigation
Sosthène Guédon
Sosthène Guédon @ sgued @programming.dev
Posts
1
Comments
3
Joined
1 yr. ago
  • Dependong on your API there may be headers that can help you.

    This talk has some info on that if memory serves me well https://m.youtube.com/watch?v=BIguvia6AvM

  • Because when T is !Sized, the layout is different, it looks more like the layout of &[T].

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

  • Rust @programming.dev
    Sosthène Guédon @programming.dev
    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>