Skip to content

hybrid-array: use GATs for ArraySize#893

Merged
tarcieri merged 1 commit intomasterfrom
hybrid-array/gat-array-size
May 3, 2023
Merged

hybrid-array: use GATs for ArraySize#893
tarcieri merged 1 commit intomasterfrom
hybrid-array/gat-array-size

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented May 3, 2023

It's quite annoying to have to add a generic parameter to ArraySize, particularly when notating it in bounds.

GATs provide a solution to this problem, moving the type parameter to the associated type so bounds are simply N: ArraySize.

It's quite annoying to have to add a generic parameter to `ArraySize`,
particularly when notating it in bounds.

GATs provide a solution to this problem, moving the type parameter to
the associated type so bounds are simply `N: ArraySize`.
@tarcieri tarcieri merged commit 1c51db5 into master May 3, 2023
@tarcieri tarcieri deleted the hybrid-array/gat-array-size branch May 3, 2023 19:39
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.

1 participant