-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use MaybeUninit while manipulating uninitialized data
Because there's no way to manipulate unitialized data to some data types just through references. Adding Arena::reserve_extend to allow a somewhat safer pattern how to initialize the memory without risk of causing UB by panicking before full initialization, causing the arena to call destructors on bad data. Closes #38.
- Loading branch information
Showing
2 changed files
with
157 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters