Skip to content

FR: Fancy printing methods + fmt::Display #1

@stevenroose

Description

@stevenroose

Being able to get a string version of the amount in a given denomination would be a nice feature :) Implementing fmt::Display is kinda crucial, though. For Display, any denomination will do.

F.e. with an

pub enum Denomination {
    BTC = 8;
    bits = 2;
    mBTC = 5;
}

as input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions