zlacker

[parent] [thread] 0 comments
1. junon+(OP)[view] [source] 2024-01-23 14:23:38
Both _can_ be free but are not inherently free.

For example, to_owned on an owned type is a no-op typically (it's a blanket implementation).

Clone on a unit struct or a unit enum variant is also a no-op in most cases (unless explicitly implemented not to be, which is very much frowned upon).

[go to top]