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

Add missing Ord and ReserveItems impls #39

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Add missing Ord and ReserveItems impls #39

merged 1 commit into from
Jun 17, 2024

Conversation

antiguru
Copy link
Owner

Add missing implementations:

  • ReadSlice: Ord+PartialOrd+Eq+PartialEq
  • OptionRegion: ReserveItems<Option<T>>
  • ResultRegion: ReserveItems<Result<T, E>>

Copy link
Collaborator

@frankmcsherry frankmcsherry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good with one caveat

src/impls/slice.rs Outdated Show resolved Hide resolved
@antiguru antiguru force-pushed the missing_impls branch 3 times, most recently from f8dc85c to db17a43 Compare June 17, 2024 19:45
@antiguru
Copy link
Owner Author

antiguru commented Jun 17, 2024

I had to bump the minimum Rust version to 1.7a because older versions fail to use the Ord and related implementations because they can't understand trait bounds on the GAT correctly.

@antiguru antiguru merged commit ee7826b into main Jun 17, 2024
8 checks passed
@antiguru antiguru deleted the missing_impls branch June 17, 2024 19:59
@github-actions github-actions bot mentioned this pull request Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants