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

hybrid-array: add slice_as_chunks(_mut) methods, minor refactoring #974

Merged
merged 3 commits into from
Oct 27, 2023

Conversation

newpavlov
Copy link
Member

As discussed here these functions will allow us to remove a bit of unsafe from downstream crates and it will be useful for users who would like to work with blocks of data.

hybrid-array/src/lib.rs Outdated Show resolved Hide resolved
@tarcieri
Copy link
Member

#951 seems somewhat related, though not something I'm suggesting we necessarily tackle in this PR

@newpavlov
Copy link
Member Author

#951 seems somewhat related, though not something I'm suggesting we necessarily tackle in this PR

Yeah, we can do it in a separate PR. I wonder if it can be handled by From/Into impls.

@tarcieri
Copy link
Member

@newpavlov that's the sort of line of thinking I was curious about, i.e. how to compose various types of (reference) conversions

@newpavlov newpavlov merged commit 316f864 into master Oct 27, 2023
11 checks passed
@newpavlov newpavlov deleted the slice_as_chunks branch October 27, 2023 21:57
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