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