Skip to content

Make Hrp::len() const fn #216

@nazar-pc

Description

@nazar-pc

I'm creating a wrapper around Hrp that constraints its length to something much more reasonable than 83 characters and use Hrp::len() to check the length, but can't make constructor of my wrapper const fn because this method isn't const.

Other methods like Hrp::as_bytes(), Hrp::as_str() and probably some others could be made const fn too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions