Skip to content

mention the issue of fallibility in replacements in the API docs #976

Closed
@obsgolem

Description

@obsgolem

Currently the Replacer trait returns a string. If you have complicated replacement logic, there is a decent chance that you want to be able to return a Result or an Option instead, with short circuiting behavior. The API would basically be to add try variants of replace_all and replacen and a new FallibleReplacer trait with an associated Error type.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions