▲ | adastra22 4 days ago | |||||||
. (early morning brain fart -- I need my coffee) | ||||||||
▲ | tialaramex 4 days ago | parent [-] | |||||||
So it's true that technically the primitive type is str, and indeed it's even possible to make a &mut str though it's quite rare that you'd want to mutably borrow the string slice. However no &str is not "an alias for &&String" and I can't quite imagine how you'd think that. String doesn't exist in Rust's core, it's from alloc and thus wouldn't be available if you don't have an allocator. | ||||||||
|