alloy-rs / alloy-rs/ruint

Feature request: "into"

Abierto
#315 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Rust
Estrellas
225
Forks
70
Merge medio
16 h 54 min
PR fusionados (30 d)
8

Descripción

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>`
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.