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

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Mar 2, 2024

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 joshlf mentioned this pull request Apr 23, 2024
13 tasks
@joshlf joshlf marked this pull request as ready for review April 23, 2024 21:13
@joshlf joshlf requested a review from jswrenn April 23, 2024 21:14
@joshlf joshlf force-pushed the known-layout-ref-apis branch 2 times, most recently from b139992 to a6e01bd Compare April 23, 2024 21:26
@joshlf joshlf force-pushed the known-layout-ref-apis branch 2 times, most recently from d26bb4d to 2321483 Compare April 23, 2024 21:52
Base automatically changed from known-layout-metadata to main April 23, 2024 21:52
@joshlf joshlf enabled auto-merge April 23, 2024 21:58
@joshlf joshlf force-pushed the known-layout-ref-apis branch 2 times, most recently from 665a1dd to f7788ed Compare April 23, 2024 22:34
@joshlf joshlf added this pull request to the merge queue Apr 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 24, 2024
@jswrenn jswrenn added this pull request to the merge queue Apr 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 24, 2024
@jswrenn jswrenn added this pull request to the merge queue Apr 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Apr 24, 2024
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 joshlf enabled auto-merge April 24, 2024 17:22
@joshlf joshlf added this pull request to the merge queue Apr 24, 2024
Merged via the queue into main with commit cd82ae7 Apr 24, 2024
210 checks passed
@joshlf joshlf deleted the known-layout-ref-apis branch April 24, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants