Skip to content

units: Make macros evocative #3707

@tcharding

Description

@tcharding

Feedback on this please:

units::impl_parse_str_from_int_infallible! {
    fn from(s) -> Result<LockTime(u32), ParseIntError> {
        units::parse::int<u32>().map(from_consensus)
    }
}

To replace

units::impl_parse_str_from_int_infallible!(LockTime, u32, from_consensus);

Done as part of C-EVOCATIVE

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.0Issues and PRs required or helping to stabilize the APIC-unitsPRs modifying the units crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions