Struct uriparser::Uri[][src]

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

Implementations

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

pub fn parse(uri: &'a [u8]) -> Result<Self, ParseError>[src]

pub fn resolve(
    &self,
    reference: &Uri<'_>,
    strict: bool
) -> Result<Uri<'static>, ()>
[src]

pub fn as_relative(
    &self,
    base: &Uri<'_>,
    from_domain_root: bool
) -> Result<Uri<'static>, ()>
[src]

pub fn into_owned(self) -> Uri<'static>[src]

pub fn scheme(&self) -> Option<&str>[src]

pub fn userinfo(&self) -> Option<&str>[src]

pub fn host(&self) -> Option<&str>[src]

pub fn port(&self) -> Option<&str>[src]

pub fn path(&self) -> Path<'_>[src]

pub fn query(&self) -> Option<&str>[src]

pub fn fragment(&self) -> Option<&str>[src]

Trait Implementations

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

impl Drop for Uri<'_>[src]

impl PartialEq<Uri<'_>> for Uri<'_>[src]

impl ToString for Uri<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Uri<'a>

impl<'a> !Send for Uri<'a>

impl<'a> !Sync for Uri<'a>

impl<'a> Unpin for Uri<'a>

impl<'a> UnwindSafe for Uri<'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, 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.