-
Type: New Feature
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
The various methods on Collection<T> that accept a T do so as an owned value, but this isn't required. Doing so requires users to clone their value if they do not want to relinquish ownership of the value, which could be wasteful. To continue to accept owned values too we could accept an impl Borrow<T> (see here for more info)