Skip to content

Define non-panicking UTF encoding methods on char #52579

Closed
@strake

Description

@strake

i.e. pub fn encode_utf8(self, &mut [u8]) -> Option<&mut str> which returns None if buffer too short

PR to follow

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions