[][src]Struct iref::Authority

pub struct Authority<'a> { /* fields omitted */ }

Implementations

impl<'a> Authority<'a>[src]

pub fn as_ref(&self) -> &[u8][src]

pub fn is_empty(&self) -> bool[src]

Checks if the authority is empty.

It is empty if it has no user info, an empty host string, and no port. Note that empty user info or port is different from no user info and port. For instance, the authorities @, : and @: are not empty.

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

pub fn as_pct_str(&self) -> &PctStr[src]

pub fn userinfo(&self) -> Option<UserInfo<'_>>[src]

pub fn host(&self) -> Host<'_>[src]

pub fn port(&self) -> Option<Port<'_>>[src]

Trait Implementations

impl<'a> Debug for Authority<'a>[src]

impl<'a> Display for Authority<'a>[src]

impl<'a> Eq for Authority<'a>[src]

impl<'a> Hash for Authority<'a>[src]

impl<'a> Ord for Authority<'a>[src]

impl<'a> PartialEq<&'a str> for Authority<'a>[src]

impl<'a> PartialEq<Authority<'a>> for Authority<'a>[src]

impl<'a> PartialOrd<Authority<'a>> for Authority<'a>[src]

impl<'a> TryFrom<&'a str> for Authority<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Authority<'a>

impl<'a> Send for Authority<'a>

impl<'a> Sync for Authority<'a>

impl<'a> Unpin for Authority<'a>

impl<'a> UnwindSafe for Authority<'a>

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> From<T> for T[src]

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

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.