Skip to content

Implement TryFrom<&str> #624

Closed
Closed
@ranfdev

Description

@ranfdev

Currently the Url type has an automatic TryFrom implementation returning core::convert::Infallible.

It would be nice to have a TryFrom<&str> returning url::ParseError, so that programs can do

fn get<U: TryInto<Url>>(dest: U) -> Result<()> {
}

(TryInto<Url> should be auto-implemented once there is TryFrom<&str>)

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