alloy-rs / alloy-rs/ruint

Feature request: "into"

未关闭
#315 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
225
派生
70
平均合并
16 小时 54 分钟
30 天内合并 PR
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 摘要。