pub trait IntoUrlParse {
type Ret;
// Required methods
fn into_url_parse(self, url: impl Into<String>) -> Self::Ret;
fn into_url_parse_with<__F, __URL>(self, f: __F) -> Self::Ret
where __F: FnOnce() -> __URL,
__URL: Into<String>;
}
Expand description
Extension trait for converting url::ParseError
into Error::UrlParse
with the given context.
Required Associated Types§
Required Methods§
sourcefn into_url_parse(self, url: impl Into<String>) -> Self::Ret
fn into_url_parse(self, url: impl Into<String>) -> Self::Ret
Converts url::ParseError
into Error::UrlParse
with the given context.
sourcefn into_url_parse_with<__F, __URL>(self, f: __F) -> Self::Ret
fn into_url_parse_with<__F, __URL>(self, f: __F) -> Self::Ret
Converts url::ParseError
into Error::UrlParse
with the context returned by the given function.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl IntoUrlParse for ParseError
impl IntoUrlParse for ParseError
source§fn into_url_parse(self, url: impl Into<String>) -> Self::Ret
fn into_url_parse(self, url: impl Into<String>) -> Self::Ret
Converts url::ParseError
into Error::UrlParse
with the given context.
source§fn into_url_parse_with<__F, __URL>(self, f: __F) -> Self::Ret
fn into_url_parse_with<__F, __URL>(self, f: __F) -> Self::Ret
Converts url::ParseError
into Error::UrlParse
with the context returned by the given function.
type Ret = Error
source§impl<__T> IntoUrlParse for Result<__T, ParseError>
impl<__T> IntoUrlParse for Result<__T, ParseError>
source§fn into_url_parse(self, url: impl Into<String>) -> Self::Ret
fn into_url_parse(self, url: impl Into<String>) -> Self::Ret
Converts url::ParseError
into Error::UrlParse
with the given context.
source§fn into_url_parse_with<__F, __URL>(self, f: __F) -> Self::Ret
fn into_url_parse_with<__F, __URL>(self, f: __F) -> Self::Ret
Converts url::ParseError
into Error::UrlParse
with the context returned by the given function.