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

Use MaybeUninit while manipulating uninitialized data #40

Merged
merged 1 commit into from Nov 26, 2019
Merged

Use MaybeUninit while manipulating uninitialized data #40

merged 1 commit into from Nov 26, 2019

Commits on Nov 26, 2019

  1. 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.
    vorner committed Nov 26, 2019
    Configuration menu
    Copy the full SHA
    0e21154 View commit details
    Browse the repository at this point in the history