alloy-rs / alloy-rs/core

[Feature] impl `UintTryTo<BITS_TARGET, LIMBS_TARGET> for Signed<BITS, LIMBS>`

Đang mở
#1,002 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Rust
Star
966
Fork
274
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
15

Mô tả

### Component

primitives

### Describe the feature you would like

Although the trait name is a bit misleading, `UintTryFrom` is implemented for `Signed` which allows you to use `Signed::from::()`.

Similarly, if `UintTryTo` is impl'd for `Signed`, it will enable us to use `Signed::to::()`. See https://docs.rs/alloy/latest/alloy/primitives/struct.Signed.html#method.to.

### Additional context

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.