The Rust Programming Language Forum
Want to feel like Indiana Jones and avoid .clone()s?
llogiq
October 9, 2016, 6:55am
1
There is a very handy
mem::replace(_)
function you might want to give a whirl.
2 Likes
Related Topics
Topic
Replies
Views
Activity
Minor library review request
help
1
348
January 12, 2023
Why is setting the value of something to the cloned value of something else faster than doing mem::replace?
5
625
January 12, 2023
Is there any way to output code with elided lifetimes?
help
3
882
January 12, 2023
Criticize the memorust
code review
2
279
September 2, 2023
PSA: regex got a lazy DFA. it's fast. report problems!
3
1837
January 12, 2023