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 a const zeroed() #240

Merged
merged 1 commit into from
May 13, 2024
Merged

Add a const zeroed() #240

merged 1 commit into from
May 13, 2024

Conversation

TyPR124
Copy link
Contributor

@TyPR124 TyPR124 commented May 13, 2024

This uses the same implementation as Zeroable::zeroed, but being outside the trait it is able to be const. Adds the "const_zeroed" feature, because const mem::zeroed requires rust 1.75.0.

Import changes are due to "zeroed" previously being a private import from mem::*

@Lokathor Lokathor merged commit 99e9508 into Lokathor:main May 13, 2024
14 checks passed
@Lokathor
Copy link
Owner

released 1.16

@Lokathor Lokathor added the semver-minor semver minor change label May 28, 2024
zachs18 pushed a commit to zachs18/bytemuck that referenced this pull request Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor semver minor change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants