Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: indexmap-rs/indexmap
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.2
Choose a base ref
...
head repository: indexmap-rs/indexmap
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.1.0
Choose a head ref
  • 11 commits
  • 8 files changed
  • 2 contributors

Commits on Oct 4, 2023

  1. Add Slice::new and new_mut for empty slices

    * `pub const fn map::Slice::new<'a>() -> &'a Self`
    * `pub fn map::Slice::new_mut<'a>() -> &'a mut Self`
    * `pub const fn set::Slice::new<'a>() -> &'a Self`
    
    In addition, the existing `len` and `is_empty` are now `const fn`.
    cuviper committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    0187071 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. add binary_search and friends

    Eh2406 committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    348b42f View commit details
    Browse the repository at this point in the history
  2. add tests

    Eh2406 committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    d93534f View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. Merge pull request #278 from cuviper/slice-new

    Add `Slice::new` and `new_mut` for empty slices
    cuviper authored Oct 27, 2023
    Configuration menu
    Copy the full SHA
    0d5ee80 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. fix wording

    Eh2406 committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    3263c0f View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. Configuration menu
    Copy the full SHA
    1350db6 View commit details
    Browse the repository at this point in the history
  2. Add plain binary search to maps and sets too

    While `IndexMap::binary_search_keys` and `IndexSet::binary_search` don't
    scale as well as their corresponding `get_index_of`, O(log n) vs. O(1),
    they do still offer the benefit of returning an `Err` insertion point.
    cuviper committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    eec4c43 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7326a6e View commit details
    Browse the repository at this point in the history
  4. Merge pull request #282 from Eh2406/binary_search

    add binary_search and friends
    cuviper authored Oct 31, 2023
    Configuration menu
    Copy the full SHA
    cd641d2 View commit details
    Browse the repository at this point in the history
  5. Release 2.1.0

    cuviper committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    f1ea007 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #283 from cuviper/release-2.1.0

    Release 2.1.0
    cuviper authored Oct 31, 2023
    Configuration menu
    Copy the full SHA
    ff49792 View commit details
    Browse the repository at this point in the history
Loading