Investigate `min_generic_const_args` for handling array sizes generically
まだ誰も着手していません。
評価
調査の方向性
まず src/sizes.rs を読んで、現在の固定サイズマクロのアプローチを理解し、その後 nightly min_generic_const_args の目標を確認してください。Array 型の N として typenum::Unsigned::USIZE を使う proof of concept を構築してください。関連するユースケースで任意のサイズが機能し、このアプローチが実行可能であることが確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Currently we use macros to write a fixed set of supported sizes, which is inflexible and we would ideally support arbitrary sizes instead (#81). See:
https://github.com/RustCrypto/hybrid-array/blob/master/src/sizes.rs
It seems like min_const_generic_args could be the missing compiler feature we need to be able to use the associated constant typenum::Unsigned::USIZE as N for [T; N] when defining our Array type.
It would be good to try to make this work on nightly in a proof-of-concept capacity to ensure it will actually work for our use cases. It would also make a compelling use case for min_const_generic_args.
cc @BoxyUwU
- 主要言語
- Rust
- スター
- 23
- フォーク
- 25
- 平均マージ
- 1時間 46分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RustCrypto/hybrid-array のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
RustCrypto/hybrid-array#201 · コメント 7 件 · リアクション 7 件 ·
-
`ArrayExt` trait オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
RustCrypto/hybrid-array#168 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
RustCrypto/hybrid-array#66 · コメント 3 件 ·
RustCrypto/hybrid-array の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
nautechsystems/nautilus_trader#5095 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
stellar/rs-soroban-env#1739 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug good first issue package: quic
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100