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 ZeroVec::as_slice #5621

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Add ZeroVec::as_slice #5621

merged 1 commit into from
Sep 30, 2024

Conversation

sffc
Copy link
Member

@sffc sffc commented Sep 30, 2024

Split from #5620

Yes, you can get this with impl Deref and impl AsRef, but in my experience it is easier for type inference if you just call a regular concrete function. I point to Vec::as_slice for precedent.

@sffc sffc merged commit 22c617a into unicode-org:main Sep 30, 2024
28 checks passed
@sffc sffc deleted the zv-as-slice branch September 30, 2024 23:21
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