String vs. &strblog.sulami.xyz 3 pointssulami1 year ago2 commentsSaveHideCopy link On HNComments−goldsteinq1yThis means it has a known size (The same as a usize.)Double that of a usize, since str is an unsized type and needs a fat pointer.−skeptrune1yFor sure one of the more concise and practical guides I've seen on the topic. Substrings make for a fantastic Northstar example.
Comments
Double that of a usize, since str is an unsized type and needs a fat pointer.
For sure one of the more concise and practical guides I've seen on the topic. Substrings make for a fantastic Northstar example.