Skip to content

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

@0xdapper

Description

@0xdapper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions