Struct uriparser::Uri [−][src]
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]
&self,
reference: &Uri<'_>,
strict: bool
) -> Result<Uri<'static>, ()>
pub fn as_relative(
&self,
base: &Uri<'_>,
from_domain_root: bool
) -> Result<Uri<'static>, ()>
[src]
&self,
base: &Uri<'_>,
from_domain_root: bool
) -> Result<Uri<'static>, ()>
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]
fn eq(&self, other: &Uri<'_>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,