Skip to content

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

@joshlf joshlf force-pushed the maybe-uninit branch 2 times, most recently from 52922b4 to 6a68bdd Compare September 3, 2023 18:13
@joshlf joshlf requested a review from jswrenn September 3, 2023 18:14
@joshlf joshlf mentioned this pull request Sep 3, 2023
35 tasks
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