Struct futhorc::url::Url[][src]

pub struct Url(_);

A newtype for URL strings, analogous to str.

Implementations

impl Url[src]

pub fn new<S: AsRef<str> + ?Sized>(url: &S) -> &Url[src]

Construct a new &Url from any AsRef<str>.

pub fn join<S: AsRef<str>>(&self, rhs: S) -> UrlBuf[src]

Join any AsRef<str> to the &Url.

pub fn to_url_buf(&self) -> UrlBuf[src]

Create a UrlBuf from the current &Url.

pub fn as_str(&self) -> &str[src]

Return the str representation of the current &Url.

Trait Implementations

impl AsRef<Url> for UrlBuf[src]

impl AsRef<str> for Url[src]

impl Borrow<Url> for UrlBuf[src]

impl Display for Url[src]

impl ToOwned for Url[src]

type Owned = UrlBuf

The resulting type after obtaining ownership.

fn to_owned(&self) -> UrlBuf[src]

Returns the owned UrlBuf corresponding to the current &Url.

Auto Trait Implementations

impl RefUnwindSafe for Url

impl Send for Url

impl !Sized for Url

impl Sync for Url

impl Unpin for Url

impl UnwindSafe for Url

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]