Skip to content

Add EcoString::truncate #45

@ronnodas

Description

@ronnodas

Should behave like String::truncate, ie panic if new_len not on a char boundary. The "same" implementation should work too, although I was expecting DynamicVec::truncate to move from Spilled to Inline if new_len <= 15 but it doesn't seem to do that. I can try making a PR for one or both of these things if they sound like improvements.

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