2 ms·
Well, &str is the type of string literals, so on some level, it has to be special. There was a PR implementing it as a wrapper around &[u8], but it didn't real
by steveklabnik 6y ago
Well, &str is the type of string literals, so on some level, it has to be special.
There was a PR implementing it as a wrapper around &[u8], but it didn't really provide any actual advantages, so it was decided to not do that.
https://github.com/rust-lang/rust/pull/19612 https://github.com/rust-lang/rust/pull/19612