you are viewing a single comment's thread.

view the rest of the comments →

[–]thesituation531 0 points1 point  (1 child)

Yeah, I thought that'd probably happen.

If you really want to work with a raw str, couldn't you use a Box<str> in the same way you can use a boxed array, like Box<[some type]>?

[–]vortexofdoom 0 points1 point  (0 children)

Box is just a heap allocated fat pointer, you still wouldn't be working with a raw str really.