Skip to content

Make String/str, Vec/[] conversions more ergonomic #14983

Closed
@brson

Description

@brson

There's a lot of code right now that does things like frob(&"foo".to_string()).as_slice(), using method calls to do both 'free' and non-free coercions. While the underlying string semantics may be good, it's not so usable as one might like.

We need to figure out a way to minimize the burden of these, and other, coercion methods without compromising predictability.

Nominating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions