Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More generic maps (in GroupingMap) #901

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

Commits on Mar 19, 2024

  1. Generic container: new Map private trait

    Note: `BTreeMap::remove<Q>` and `BTreeMap::remove<Q>` both accept a more general `Q` rather than just `Self::Key`.
    If ever needed, `Map<Q>` would be possible (with the same bound on `Q` than `Self::Key`: `Ord` or `Eq + Hash`).
    Philippe-Cholet committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    ca064c8 View commit details
    Browse the repository at this point in the history
  2. grouping_map module behind use_alloc feature

    Relax `K: Hash + Eq` bounds to soon accept `BTreeMap<K, V>`.
    Philippe-Cholet committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    f6da436 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    79ea22b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fc2fcb7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cb72ea1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    742a678 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f8c7d19 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fbf63e8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    99a0a64 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    41bdf4b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2cfc868 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4b5d32d View commit details
    Browse the repository at this point in the history
  13. Implementation of Map for simple Vec<(_, _)>

    Note it uses `swap_remove`.
    Philippe-Cholet committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    56213c1 View commit details
    Browse the repository at this point in the history
  14. GroupingMap: add doctests using BTreeMap

    Copied from their non-suffixed variants and minimally updated.
    Philippe-Cholet committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    bf8e4aa View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    5a71e63 View commit details
    Browse the repository at this point in the history