Skip to content

[pitch] Apply the extracting() slicing pattern to Span & RawSpan #2877

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

glessard
Copy link
Contributor

@glessard glessard commented Jun 5, 2025

We have established the extracting() pattern for slicing containers of non-copyable elements already, for UnsafeBufferPointer<T> and MutableSpan<T>. This proposal extends it to more types, notably Span<T> and RawSpan, as well as rounding out the functions available in the UnsafeBufferPointer family of types.

@glessard glessard changed the title [pitch] expansion of the extracting() slicing pattern to Span & RawSpan [pitch] Apply the extracting() slicing pattern to Span & RawSpan Jun 5, 2025
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.

3 participants