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 non-slice Ref constructors w/ slice elem count #996

Merged
merged 1 commit into from
Apr 24, 2024

Commits on Apr 24, 2024

  1. Add non-slice Ref constructors w/ slice elem count

    Add `Ref` constructors which are generic over `T:
    KnownLayout<PointerMetadata = usize>` - in other words, types whose
    trailing field is a slice (i.e., slices or slice DSTs). These
    constructors take an explicit element count for the trailing slice, and
    replace the previous constructors which only supported slices.
    
    Makes progress on #29
    joshlf committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    0cfe603 View commit details
    Browse the repository at this point in the history