Skip to content

Add more APIs into std_specs#2009

Draft
hiroki-chen wants to merge 7 commits intoverus-lang:mainfrom
hiroki-chen:std-slice-specs
Draft

Add more APIs into std_specs#2009
hiroki-chen wants to merge 7 commits intoverus-lang:mainfrom
hiroki-chen:std-slice-specs

Conversation

@hiroki-chen
Copy link
Contributor

@hiroki-chen hiroki-chen commented Nov 24, 2025

This PR does three things:

  1. Implement ExDefault indicated in Support for Default::default(); #1951.
  2. Implement slice APIs:
  • Sorted-related: binary_search_*, is_sorted_.
  • Slice manipulations reverse, rotate_, swap, etc.
  • Misc: contains, starts_with, ends_with, etc.
  1. Move unreachable_unchecked into the correct place control_flow.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@hiroki-chen hiroki-chen marked this pull request as draft November 25, 2025 16:21
@sssxks
Copy link
Contributor

sssxks commented Dec 30, 2025

hi, i am currently blocked by Default::default() in my verus project. your pr contains ExDefault, but are you planning to finish it? i am happy to help by splitting a smaller PR containing only default.

@hiroki-chen
Copy link
Contributor Author

hi, i am currently blocked by Default::default() in my verus project. your pr contains ExDefault, but are you planning to finish it? i am happy to help by splitting a smaller PR containing only default.

Thanks, you may cherry pick my draft PRs if needed, this is still a WIP one.

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