Skip to content

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

Merged
newpavlov merged 3 commits intomasterfrom
slice_as_chunks
Oct 27, 2023
Merged

hybrid-array: add slice_as_chunks(_mut) methods, minor refactoring#974
newpavlov merged 3 commits intomasterfrom
slice_as_chunks

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.

@newpavlov newpavlov requested a review from tarcieri October 27, 2023 21:07
@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
@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