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 ArrayVec::as_inner() #197

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Add ArrayVec::as_inner() #197

merged 1 commit into from
Jul 8, 2024

Commits on Jul 7, 2024

  1. Add ArrayVec::as_inner()

    Originally I was going to call this `as_array()`
    but `as_inner()` is more consistent with the
    existing `into_inner()` method. I don't
    _ultimately_ care what it ends up being called.
    
    I wonder if we should have a `impl
    From<ArrayVec<T>> for A` implementation or is that
    a bit too foot-gun-y?
    
    This lives in its own `impl<A> ArrayVec<A>` block
    because rust 1.47.0 is unhappy about having a
    const function inside `impl<A: Array>
    ArrayVec<A>`. We don't need the trait anyway.
    
    Fixes Lokathor#193.
    Fuuzetsu committed Jul 7, 2024
    Configuration menu
    Copy the full SHA
    19b5c19 View commit details
    Browse the repository at this point in the history