Skip to content

There is no way to create a PathBuf from an OsString without copying #22751

Closed
@lilyball

Description

@lilyball

PathBuf doesn't expose any methods that can be used to create a PathBuf from an OsString (or anything convertible to an OsString) without copying. This seems like an unnecessary limitation.

/cc @aturon

Metadata

Metadata

Assignees

Labels

E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions