pub trait IntoUrlParse {
type Ret;
// Required methods
fn into_url_parse(self, arg_1: impl Into<String>) -> Self::Ret;
fn into_url_parse_with<__F, __ARG_1>(self, f: __F) -> Self::Ret
where __F: FnOnce() -> __ARG_1,
__ARG_1: Into<String>;
}
Expand description
Extension trait for converting [http::uri::InvalidUri
] into MetaAddressStrategyParseError::UrlParse
with the given context.
Required Associated Types§
Required Methods§
sourcefn into_url_parse(self, arg_1: impl Into<String>) -> Self::Ret
fn into_url_parse(self, arg_1: impl Into<String>) -> Self::Ret
Converts [http::uri::InvalidUri
] into MetaAddressStrategyParseError::UrlParse
with the given context.
sourcefn into_url_parse_with<__F, __ARG_1>(self, f: __F) -> Self::Ret
fn into_url_parse_with<__F, __ARG_1>(self, f: __F) -> Self::Ret
Converts [http::uri::InvalidUri
] into MetaAddressStrategyParseError::UrlParse
with the context returned by the given function.
Object Safety§
Implementations on Foreign Types§
source§impl IntoUrlParse for InvalidUri
impl IntoUrlParse for InvalidUri
source§fn into_url_parse(self, arg_1: impl Into<String>) -> Self::Ret
fn into_url_parse(self, arg_1: impl Into<String>) -> Self::Ret
Converts [http::uri::InvalidUri
] into MetaAddressStrategyParseError::UrlParse
with the given context.
source§fn into_url_parse_with<__F, __ARG_1>(self, f: __F) -> Self::Ret
fn into_url_parse_with<__F, __ARG_1>(self, f: __F) -> Self::Ret
Converts [http::uri::InvalidUri
] into MetaAddressStrategyParseError::UrlParse
with the context returned by the given function.
type Ret = MetaAddressStrategyParseError
source§impl<__T> IntoUrlParse for Result<__T, InvalidUri>
impl<__T> IntoUrlParse for Result<__T, InvalidUri>
source§fn into_url_parse(self, arg_1: impl Into<String>) -> Self::Ret
fn into_url_parse(self, arg_1: impl Into<String>) -> Self::Ret
Converts [http::uri::InvalidUri
] into MetaAddressStrategyParseError::UrlParse
with the given context.
source§fn into_url_parse_with<__F, __ARG_1>(self, f: __F) -> Self::Ret
fn into_url_parse_with<__F, __ARG_1>(self, f: __F) -> Self::Ret
Converts [http::uri::InvalidUri
] into MetaAddressStrategyParseError::UrlParse
with the context returned by the given function.