core icon indicating copy to clipboard operation
core copied to clipboard

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

Open 0xdapper opened this issue 3 months ago • 1 comments

Component

primitives

Describe the feature you would like

Although the trait name is a bit misleading, UintTryFrom is implemented for Signed<BITS, LIMBS> which allows you to use Signed<BITS, LIMBS>::from::<Signed<BITS_SRC, LIMBS_SRC>().

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

Additional context

No response

0xdapper avatar Sep 02 '25 10:09 0xdapper

May I take on it?

nadtech-hub avatar Sep 09 '25 16:09 nadtech-hub