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

Remove Bson::as_*_mut helpers for types that are Copy

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-0.15.0
    • Affects Version/s: None
    • Component/s: BSON

      Bson provides mutable getters to for each of the variants in the enum, e.g. Bson::as_document_mut, which returns an Option<&mut Document. While these are useful for most types, they don't provide much utility for types that implement Copy (e.g. numeric types and bool), as none of the functionality on those types is implemented in methods that take references to self. To cut down on unnecessary API surface, we should remove those extraneous as_mut helpers.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: