Accept references in insert and replace methods

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Unknown
    • 2.0.0-beta
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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)

            Assignee:
            Patrick Freed
            Reporter:
            Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: