Skip to content

Create AsciiStr from str using const fn  #84

Description

@PatrickNorton

Since mem::transmute will be const-stable in 1.56.0, it would be nice if there was a way to construct an AsciiStr (and AsciiString) at compile-time. Since the from_str function is in a trait, and thus cannot be const yet, we would probably need to add a new method for this.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions