Skip to content

Impls of TryFrom #50212

Closed
Closed
@Kixunil

Description

@Kixunil

Here are some impls if TryFrom that I'd like to see. I checked against the documentation, not current git master. I'm sorry, if some are already resolved.

  • TryFrom<&str> for numeric types (parsing)
  • TryFrom<String> for numeric types (the benefit of this is that if you generically bound by TryFrom<String>, you may save allocation in case of TryFrom<String> for String
  • TryFrom<OsStr> for numeric types (useful for parsing args_os or env_os)
  • TryFrom<OsString> for numeric types
  • all above combinations for IP addresses
  • probably many more I don't remember right now

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions