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 len and slice_from_raw_parts to NonNull<[T]> #71940

Merged
merged 2 commits into from
May 25, 2020

Commits on May 18, 2020

  1. Add len and slice_from_raw_parts to NonNull<[T]>

    This follows the precedent of the recently-added `<*const [T]>::len`
    (adding to its tracking issue rust-lang#71146)
    and `ptr::slice_from_raw_parts`.
    SimonSapin committed May 18, 2020
    Configuration menu
    Copy the full SHA
    49d5f5a View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    Co-authored-by: kennytm <[email protected]>
    SimonSapin and kennytm committed May 18, 2020
    Configuration menu
    Copy the full SHA
    861dfaa View commit details
    Browse the repository at this point in the history