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

Make a mismatch of PK in an IndexedMap impossible (alt) #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

uint
Copy link
Contributor

@uint uint commented Oct 24, 2024

Closes #83

This PR uses assoc types instead of generic params.

Seems this makes the macro easy to fix too. The macro-expanded code infers the PK type from the first field's type (<FirstFieldType as Index<T>>::PK).

API-breaking!

@uint uint added the breaking Breaking API change label Oct 28, 2024
@uint uint requested a review from hashedone October 28, 2024 12:48
@uint uint marked this pull request as ready for review October 28, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking API change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

multiindex key definition - footgun
1 participant