Skip to content

Implement Display for structs in std::char #1848

@clarfonthey

Description

@clarfonthey

Right now, EscapeUnicode, EscapeDefault, EscapeDebug, ToLowercase, and ToUppercase do not implement Display. I think that this would be rather useful, because then you could simplyprint!("{}", 'ß'.to_uppercase()) instead of having to do a for loop or convert to a String (which is costly).

Code is implemented in rust-lang/rust#38909.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions