minus-squareSosthène Guédon@programming.devtoRust@programming.dev•Rust Container Cheat Sheetlinkfedilinkarrow-up4·5 months agoBecause when T is !Sized, the layout is different, it looks more like the layout of &[T]. linkfedilink
minus-squareSosthène Guédon@programming.devtoRust@programming.dev•Rust Container Cheat Sheetlinkfedilinkarrow-up10·5 months agoThis is outdatded. Mutexes don’t allocate anymore. That’s how Mutex::new can be const. linkfedilink
Sosthène Guédon@programming.dev to Rust@programming.devEnglish · 9 months agoHow to work with !Sized types in Rustplus-squaresgued.frexternal-linkmessage-square0fedilinkarrow-up112arrow-down10
arrow-up112arrow-down1external-linkHow to work with !Sized types in Rustplus-squaresgued.frSosthène Guédon@programming.dev to Rust@programming.devEnglish · 9 months agomessage-square0fedilink
Because when
T
is!Sized
, the layout is different, it looks more like the layout of&[T]
.