The docs for to_owned() state:
Creates owned data from borrowed data, usually by cloning.
But it is unstated the conditions under which cloning does not occur. "Usually" is quite vague, and I am trying to remove .clone() calls for performance reasons.
Can someone clarify?