Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-2041

Audit owned vs by-reference arguments

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • bson-3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Rust Drivers

      Some key functions (e.g. from_document) consume their argument when I suspect there's no concrete benefit to them doing so. For 3.0 we should audit the API and bias towards accepting data (especially potentially large data like bson) by reference rather than by value.

            Assignee:
            Unassigned Unassigned
            Reporter:
            abraham.egnor@mongodb.com Abraham Egnor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: