forked from fizyk20/generic-array
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduces a trait defining an associated constant of the `Self` type. An implementation is provided for `GenericArray`, providing means of constructing default `GenericArray`s in const context. This plugs a gap that exists even if fizyk20#130 is merged, as generic type parameters cannot currently be referenced in const context (e.g. if the repetition length provided to the `arr!` macro comes from a type parameter).
- Loading branch information
Showing
1 changed file
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters