alloy-rs / alloy-rs/ruint

Feature request: "into"

オープン
#315 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
225
フォーク
70
平均マージ
16時間 54分
マージ済み PR(30日)
8

説明

I'd like to be able to initialize a `U256` like this:

```rust
foo(10.into());
```

Where `foo` is a function that takes a `U256` as an input.

This operation is not currently supported. I am getting the following error:

```text
help: the following other types implement trait `From`:
as From>
as From>
label: the trait `From<{integer}>` is not implemented for `Uint<256, 4>`
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。