Why do some trait implementations receive values, while others take references?
Published at 2024-04-28
Last update over 365 days ago
Licensed under CC BY-NC-SA 4.0
add
ownership
dereference
partialeq
langs
rust
Why do some trait implementations receive values, while others take references?
related:
- Why isn't it possible to compare a borrowed integer to a literal integer?
- why does Rust's Add trait take ownership?