sgued

joined 1 year ago
[–] sgued@programming.dev 1 points 5 months ago* (last edited 5 months 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

[–] sgued@programming.dev 4 points 1 year ago

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

[–] sgued@programming.dev 10 points 1 year ago

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