[-] sgued@programming.dev 4 points 4 months ago

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

[-] sgued@programming.dev 10 points 4 months ago

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

12
submitted 9 months ago by sgued@programming.dev to c/rust@programming.dev

sgued

joined 9 months ago