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 TryFrom<&[T]> for [T; $N] where T: Copy #56216

Merged
merged 1 commit into from
Nov 30, 2018

Commits on Nov 25, 2018

  1. Add TryFrom<&[T]> for [T; $N] where T: Copy

    `TryFrom<&[T]> for &[T; $N]` (note *reference* to an array) already exists,
    but not needing to dereference makes type inference easier
    for example when using `u32::from_be_bytes`.
    
    Also add doc examples doing just that.
    SimonSapin committed Nov 25, 2018
    Configuration menu
    Copy the full SHA
    057e6d3 View commit details
    Browse the repository at this point in the history