Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add .into_raw_vec_with_offset() and deprecate .into_raw_vec() #1379

Merged
merged 2 commits into from
Apr 4, 2024

Commits on Apr 1, 2024

  1. Update into_raw_vec

    Without the offset from start of allocation to the logically first
    element of the array, correctly reinterpreting the results of
    .into_raw_vec() as an n-D array is tricky.
    jturner314 authored and bluss committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    6d04ebd View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Add .into_raw_vec_with_offset() and deprecate .into_raw_vec()

    Provide a smoother transition by deprecating the old method and
    introducing a new one.
    
    Return Option<usize>, this makes the empty vector case stand out
    as a separate case that needs to be handled.
    bluss committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    edfbe81 View commit details
    Browse the repository at this point in the history