I was just wondering why it's not a regular type like
Box, but a primitive type like integers and floats. I haven't found any topics here.
I implemented my own string slice type for a different encoding not long ago and that worked fine for me. What were the reasons for Rust to not define it as, e.g.
#[repr(transparent)] struct StringSlice([u8]);
If it's about language features, that weren't ready yet at the time of the first stable release of Rust, would it be implemented differently, nowadays, if they had the choice?