alloy-rs / alloy-rs/core

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

未關閉
#1,002 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Rust
星號
967
分支
274
平均合併
1 天 21 小時
30 天內合併 PR
15

描述

### 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_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。