Trait IntoUrl

Source
pub trait IntoUrl {
    // Required method
    fn into_url(self) -> Result<Url, UrlError>;
}
Expand description

A helper trait to convert common objects into a Url.

Required Methods§

Source

fn into_url(self) -> Result<Url, UrlError>

Consumes the object, trying to return a Url.

Implementations on Foreign Types§

Source§

impl<'a> IntoUrl for &'a str

Source§

impl<'a> IntoUrl for &'a String

Implementors§