Skip to content

UpperHex/LowerHex trait should be implemented for &[u8] #33127

Closed
@BusyJay

Description

@BusyJay

It is a common use case to print a byte array in hex format. For example:

assert_eq!("0203", format!("{:x}", &[2u8, 3]));

And user can't implement this behaviour cleanly.

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