compiler/pitfalls/iterator-everywhere #1055
Replies: 3 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
这例子说的, 你怎么知道什么时候clone是高效的, 什么时候clone是低效的.难道都要去看原代码吗? |
Beta Was this translation helpful? Give feedback.
1 reply
-
克隆在 Rust 中也并不总是bad guy的代名词,有的时候我们可以大胆去使用,当然前提是了解你的代码场景和具体的clone实现 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
compiler/pitfalls/iterator-everywhere
https://course.rs/compiler/pitfalls/iterator-everywhere.html
Beta Was this translation helpful? Give feedback.
All reactions