Skip to content

std::ascii needs some improvements #7150

@Kimundi

Description

@Kimundi
Member
  • (~str).to_ascii_consume is incorrect, lacks tests.
  • Need a way to go ~[Ascii] -> ~[u8] (both consuming/unconsuming).
  • Naming conventions could be changed: as_ prefix for cheap casts, to_ as prefix for copying to a new one, into_ for moving into a new type.
  • Unsafe versions without safety checks.

Activity

added a commit that references this issue on Jun 17, 2013
17eec62
added 2 commits that reference this issue on May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Kimundi

      Issue actions

        std::ascii needs some improvements · Issue #7150 · rust-lang/rust