Skip to content
This repository was archived by the owner on Nov 9, 2025. It is now read-only.
This repository was archived by the owner on Nov 9, 2025. It is now read-only.

Efficient from_utf8_lossy for SmolStr? #93

@Jason5Lee

Description

@Jason5Lee

What's the best way to convert bytes or OsStr to a SmolStr using lossy UTF-8 decoding, avoiding the extra allocation of to_string_lossy().to_smolstr()?

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