Answer by NebulaFox for Immutable Strings and Cloning
From the discussion in the comments of my question, all the cloning of immutable Strings in the example is correct. The cloning is necessary due to Rust handling memory via ownership rather than a...
View ArticleImmutable Strings and Cloning
I have the mindset keeping my Strings immutable, a single source of truth.As I take the same mindset into Rust, I find I have to do a lot of cloning.Since the Strings do not change, all the cloning is...
View Article
More Pages to Explore .....