Tracking issue for additional array size support: `error[E0277]: the trait bound U...: ArraySize is not satisfied`
まだ誰も着手していません。
評価
調査の方向性
まずこのトラッキング issue と、参照されている #57 の議論を読んでください。payload には、ソースファイル、テスト、特定の配列サイズのいずれも示されていません。この作業には、決定済みのリクエストと、extra-sizes 機能の下でそのサイズを追加するための明確な計画が必要で、完了は選択されたサイズをサポートすることによって定義されます。
索引モデルが issue の本文から書いたものです。
説明
hybrid-array relies on impls of ArraySize on individual typenum::Unsigned types, e.g. U1, U2, U3, which is a deliberate tradeoff versus generic-array which is able to support any array size.
These ArraySize impls are the linkage between typenum types and core arrays, which provide the underlying storage used by hybrid-array, and with it const generic linkage and significantly less unsafe code.
Unfortunately, you will encounter the rustc error message in the issue title if you attempt to use an unsupported array size.
Per #57, we are attempting to handle such cases as one-off requests for sizes which can be granted on a case-by-case basis, and gating them under the extra-sizes. It's unclear how well this will work in practice, but we are attempting it for now.
The main reason to constrain the number of supported sizes is a compile time cost as we add more impls of ArraySize/AssocArraySize. Compile times are not currently too significant but get worse as we add support for more array sizes.
- 主要言語
- Rust
- スター
- 23
- フォーク
- 25
- 平均マージ
- 1時間 46分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RustCrypto/hybrid-array のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
RustCrypto/hybrid-array#201 · コメント 7 件 · リアクション 7 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
RustCrypto/hybrid-array#180 · コメント 2 件 ·
-
`ArrayExt` traitオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
RustCrypto/hybrid-array#168 · コメント 1 件 ·
RustCrypto/hybrid-array の issue をすべて見る
似ている issue
-
area:casework bug criticality:p3 triage:needs-implementation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
registrystack/registry-stack#1623 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
leptos-rs/leptos#4885 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
longbridge/gpui-kit#3276 ·
メンテナーはふだん 1 日以内に返信
-
A-Migration Guides D-Straightforward S-Ready-For-Implementation X-Uncontroversial
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
bevyengine/bevy-website#2607 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信