Trait IntoUrl

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

attempt to construct a url, with base if present

Required Methods§

Source

fn into_url(self, base: Option<&Url>) -> Result<Url>

attempt to construct a url, with base if present

Implementations on Foreign Types§

Source§

impl IntoUrl for &str

Source§

fn into_url(self, base: Option<&Url>) -> Result<Url>

Source§

impl IntoUrl for IpAddr

Source§

fn into_url(self, base: Option<&Url>) -> Result<Url>

note that http is assumed regardless of port

Source§

impl IntoUrl for SocketAddr

Source§

fn into_url(self, base: Option<&Url>) -> Result<Url>

Source§

impl IntoUrl for String

Source§

fn into_url(self, base: Option<&Url>) -> Result<Url>

Source§

impl<S: AsRef<str>> IntoUrl for &[S]

Source§

fn into_url(self, base: Option<&Url>) -> Result<Url>

Source§

impl<S: AsRef<str>> IntoUrl for Vec<S>

Source§

fn into_url(self, base: Option<&Url>) -> Result<Url>

Source§

impl<S: AsRef<str>, const N: usize> IntoUrl for [S; N]

Source§

fn into_url(self, base: Option<&Url>) -> Result<Url>

Implementors§