Hacker News new | ask | show | jobs
by volta83 1735 days ago
Is Rust `str` builtin?

I thought it was just a `struct str([u8]);` (a dynamically-sized type).

1 comments

It is built in. It was almost switched to be exactly that before 1.0, but IIRC it provided no real upsides and several downsides. There was a PR with the discussion but I can’t find it right now.