Skip to content

Make str::ends_with a const fn #50899

Closed
Closed
@alex

Description

@alex

Currently it can't be called from a const fn, which is sad :-(

Ordinarily I'd take a pass at implementing this myself, but str::ends_with is slightly more complex than meets the eye because of the Pattern abstraction, and I'm not particularly sure how that's best handled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions