Trait IntoUrlParse

Source
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§

Source

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
where __F: FnOnce() -> __URL, __URL: Into<String>,

Converts url::ParseError into Error::UrlParse with the context returned by the given function.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoUrlParse for ParseError

Source§

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
where __F: FnOnce() -> __URL, __URL: Into<String>,

Converts url::ParseError into Error::UrlParse with the context returned by the given function.

Source§

type Ret = Error

Source§

impl<__T> IntoUrlParse for Result<__T, ParseError>

Source§

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
where __F: FnOnce() -> __URL, __URL: Into<String>,

Converts url::ParseError into Error::UrlParse with the context returned by the given function.

Source§

type Ret = Result<__T, Error>

Implementors§