Skip to content

Construct RawValue from str slice #1310

@95th

Description

@95th

I have a use case to create a RawValue reference from str slice. I see that there is a private from_borrowed method which does exactly that.
I could probably transmute a &str to &RawValue myself, but it felt more brittle.
Is it possible to expose an unsafe version like from_borrowed_unchecked?

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