Here's a recent post summarizing slices (including str
), and another diagraming the difference between &Vec<_>
and &[_]
(which is the same as the difference between &String
and &str
).
This post is a repost from another recent thread .
Here's a recent post summarizing slices (including str
), and another diagraming the difference between &Vec<_>
and &[_]
(which is the same as the difference between &String
and &str
).
This post is a repost from another recent thread .