I love “rules of thumb” that let you do the job 90% of the time. This post by Steve Klabnik lays out some rules for &str beautifully.
https://steveklabnik.com/writing/when-should-i-use-string-vs-str/
[#]rust #softwaredevelopment
=> More informations about this toot | View the thread | More toots from doowttam@social.lol
=> View rust tag | View softwaredevelopment tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini