Because when T
is !Sized
, the layout is different, it looks more like the layout of &[T]
.
Sosthène Guédon
- 1 Post
- 3 Comments
Joined 1 year ago
Cake day: February 7th, 2024
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
This is outdatded. Mutexes don’t allocate anymore. That’s how
Mutex::new
can be const.
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