Skip to content

Create AsciiStr from str using const fn  #84

Closed
@PatrickNorton

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.

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