pub struct URIStr { /* private fields */ }Implementations§
Source§impl URIStr
impl URIStr
Sourcepub fn resolve(&self, reference: &Self) -> URIString
pub fn resolve(&self, reference: &Self) -> URIString
Resolve the relative reference reference using self as the base URI.
self must be convertible to an absolute URI
through fragment removal
and normalization.
§Reference
Sourcepub fn as_escaped_str(&self) -> &str
pub fn as_escaped_str(&self) -> &str
Return the escaped URI string.
Sourcepub fn as_unescaped_str(&self) -> Option<Cow<'_, str>>
pub fn as_unescaped_str(&self) -> Option<Cow<'_, str>>
Return the unescaped URI string.
If unescaping fails, return None.
Sourcepub fn is_absolute(&self) -> bool
pub fn is_absolute(&self) -> bool
§Reference
Sourcepub fn is_relative(&self) -> bool
pub fn is_relative(&self) -> bool
§Reference
§Reference
Sourcepub fn components(&self) -> Components<'_> ⓘ
pub fn components(&self) -> Components<'_> ⓘ
Return an iterator that scans the URI components.