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 as_contiguous to Slice #39

Merged
merged 2 commits into from
Nov 23, 2023
Merged

Conversation

vxpm
Copy link
Contributor

@vxpm vxpm commented Nov 1, 2023

adds a method to attempt turning a SegVec Slice (which is not necessarily contiguous) into a &[T] that can be useful whenever the Slice only spans a single segment.

@mccolljr mccolljr merged commit a9f31ff into mccolljr:master Nov 23, 2023
2 checks passed
@mccolljr
Copy link
Owner

Wow, I apologize - this slipped under my radar. This change makes sense, and I can see this being a useful optimization. Thank you for the contribution!

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