pub trait IntoUrl {
// Required methods
fn to_url(self) -> Result<Url, ParseError>;
fn as_str(&self) -> &str;
}Expand description
A trait to try to convert some type into a Url.
Required Methods§
Sourcefn to_url(self) -> Result<Url, ParseError>
fn to_url(self) -> Result<Url, ParseError>
Parse as a valid Url