Struct futhorc::url::UrlBuf[][src]

pub struct UrlBuf(_);

A newtype for URL strings, analogous to String.

Implementations

impl UrlBuf[src]

pub fn new() -> UrlBuf[src]

Constructs a new UrlBuf; corresponds to String::new.

pub fn into_string(self) -> String[src]

Consumes the current UrlBuf and returns the String representation.

Methods from Deref<Target = Url>

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 UrlBuf[src]

impl Borrow<Url> for UrlBuf[src]

impl Clone for UrlBuf[src]

impl Debug for UrlBuf[src]

impl Default for UrlBuf[src]

fn default() -> UrlBuf[src]

Returns a default UrlBuf. This corresponds to String::default.

impl Deref for UrlBuf[src]

type Target = Url

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for UrlBuf[src]

impl Display for UrlBuf[src]

impl From<&'_ str> for UrlBuf[src]

impl From<String> for UrlBuf[src]

Auto Trait Implementations

impl RefUnwindSafe for UrlBuf

impl Send for UrlBuf

impl Sync for UrlBuf

impl Unpin for UrlBuf

impl UnwindSafe for UrlBuf

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.