Skip to content

Support missing std String methods #26

Open
@lo48576

Description

@lo48576

String has some new methods not supported by inlinable_string::StringExt trait, and some of them should be implemented using unsafe to perform well (for example, insert_str and retain).

Of course they can be implemented without unsafe (and they would be slow).
However, I think inlinable_string crate should implement and test them in some way (possibly using unsafe), before users try to implement by themselves.
Use of unsafe should be gathered to upstream crates as possible, rather than written by every downstream user.

Here is a list of missing methods:

They can be implemented to InlineString without breaking changes.
However, adding them to StringExt is breaking change, and it is better to be done at once.

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