Skip to content

Add trait MutableKeys #39

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

Merged
merged 2 commits into from
Sep 24, 2017
Merged

Add trait MutableKeys #39

merged 2 commits into from
Sep 24, 2017

Conversation

bluss
Copy link
Member

@bluss bluss commented Sep 24, 2017

  • Remove get_pair, and rename get_pair_index to get_full. Same with the
    mutable variant.

  • Move mutable key methods to MutableKeys -- we want this feature to be
    out of the way, but opt-in. The trait has mutable key-versions of
    get_full and retain

Fixes #7

@bluss bluss mentioned this pull request Sep 24, 2017
8 tasks
- Remove get_pair, and rename get_pair_index to get_full. Same with the
  mutable variant.

- Move mutable key methods to MutableKeys -- we want this feature to be
  out of the way, but opt-in. The trait has mutable key-versions of
  get_full and retain
@bluss
Copy link
Member Author

bluss commented Sep 24, 2017

cc @garro95 github code search found you as a user of mutable keys. As a head's up, ordermap is preparing some small remodeling to put mutable key methods on a trait, so that users opt in to a "nonstandard" interface. Expected to be in ordermap 0.3 (or if the crate renames, there will be a bigger PSA).

Also return the index, hence the name full
@bluss bluss merged commit 9dce2c3 into master Sep 24, 2017
@bluss bluss deleted the mutable-keys branch September 24, 2017 19:09
@bluss bluss mentioned this pull request Oct 2, 2017
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant