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 MaybeUninit type #312

Closed
wants to merge 1 commit into from
Closed

Add MaybeUninit type #312

wants to merge 1 commit into from

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Sep 3, 2023

The standard library's MaybeUninit type does not currently support wrapping unsized types. This commit introduces a polyfill with the same behavior as MaybeUninit which does support wrapping unsized types.

In this commit, the only supported types are sized types and slice types. Later (as part of #29), we will add the ability to derive the AsMaybeUninit trait, which will extend support to custom DSTs.

Makes progress on #29

The standard library's `MaybeUninit` type does not currently support
wrapping unsized types. This commit introduces a polyfill with the same
behavior as `MaybeUninit` which does support wrapping unsized types.

In this commit, the only supported types are sized types and slice
types. Later (as part of #29), we will add the ability to derive the
`AsMaybeUninit` trait, which will extend support to custom DSTs.

Makes progress on #29
@joshlf joshlf changed the title Add MaybeUninit type Add MaybeUninit type Sep 3, 2023
@joshlf joshlf closed this Sep 3, 2023
@joshlf joshlf deleted the maybe-uninit branch September 3, 2023 23:03
@joshlf
Copy link
Member Author

joshlf commented Sep 3, 2023

This was accidentally closed when renaming a branch. It's reopened in #319.

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