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: change Deref::Target to [T] #913

Merged
merged 1 commit into from
May 31, 2023

Conversation

tarcieri
Copy link
Member

This makes porting existing generic-array code easier, and also means deref coercion will allow &Array<T, _> to deref to &[T], making it usable anywhere a slice is.

This makes porting existing `generic-array` code easier, and also means
deref coercion will allow `&Array<T, _>` to deref to `&[T]`, making it
usable anywhere a slice is.
@tarcieri tarcieri merged commit 14b1e13 into master May 31, 2023
@tarcieri tarcieri deleted the hybrid-array/slice-as-deref-target branch May 31, 2023 00:02
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.

1 participant