[−][src]Struct iri_string::types::RelativeIriString
An owned string of a relative IRI.
This corresponds to irelative-ref
rule in RFC 3987.
This is irelative-part [ "?" iquery ] [ "#" fragment ]
.
In other words, this is roughly IriString
without scheme part.
See documentation for RelativeIriStr
.
Methods
impl RelativeIriString
[src]
pub fn set_fragment(&mut self, fragment: Option<&IriFragmentStr>)
[src]
Sets the fragment part to the given string.
Removes fragment part (and following #
character) if None
is given.
pub fn shrink_to_fit(&mut self)
[src]
Shrinks the capacity of the inner buffer to match its length.
Methods from Deref<Target = RelativeIriStr>
Trait Implementations
impl AsRef<str> for RelativeIriString where
str: AsRef<str>,
str: AsRef<str>,
impl AsRef<RelativeIriStr> for RelativeIriString
fn as_ref(&self) -> &RelativeIriStr
impl AsRef<IriReferenceStr> for RelativeIriString
[src]
fn as_ref(&self) -> &IriReferenceStr
[src]
impl From<RelativeIriString> for String
fn from(custom: RelativeIriString) -> Self
impl From<RelativeIriString> for IriReferenceString
[src]
fn from(s: RelativeIriString) -> IriReferenceString
[src]
impl Clone for RelativeIriString
[src]
fn clone(&self) -> RelativeIriString
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for RelativeIriString
[src]
impl Ord for RelativeIriString
[src]
fn cmp(&self, other: &RelativeIriString) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<RelativeIriString> for RelativeIriString
[src]
fn eq(&self, other: &RelativeIriString) -> bool
[src]
fn ne(&self, other: &RelativeIriString) -> bool
[src]
impl PartialEq<RelativeIriStr> for RelativeIriString
impl PartialEq<RelativeIriString> for RelativeIriStr
fn eq(&self, other: &RelativeIriString) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ RelativeIriStr> for RelativeIriString
fn eq(&self, other: &&RelativeIriStr) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<RelativeIriString> for &'_ RelativeIriStr
fn eq(&self, other: &RelativeIriString) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<Cow<'_, RelativeIriStr>> for RelativeIriString
fn eq(&self, other: &Cow<RelativeIriStr>) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<RelativeIriString> for Cow<'_, RelativeIriStr>
fn eq(&self, other: &RelativeIriString) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<str> for RelativeIriString
impl PartialEq<RelativeIriString> for str
fn eq(&self, other: &RelativeIriString) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ str> for RelativeIriString
impl<'_> PartialEq<RelativeIriString> for &'_ str
fn eq(&self, other: &RelativeIriString) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<Cow<'_, str>> for RelativeIriString
impl<'_> PartialEq<RelativeIriString> for Cow<'_, str>
fn eq(&self, other: &RelativeIriString) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<IriReferenceStr> for RelativeIriString
[src]
fn eq(&self, o: &IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<RelativeIriString> for IriReferenceStr
[src]
fn eq(&self, o: &RelativeIriString) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ IriReferenceStr> for RelativeIriString
[src]
fn eq(&self, o: &&IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<RelativeIriString> for &'_ IriReferenceStr
[src]
fn eq(&self, o: &RelativeIriString) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<Cow<'_, IriReferenceStr>> for RelativeIriString
[src]
fn eq(&self, o: &Cow<IriReferenceStr>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<RelativeIriString> for Cow<'_, IriReferenceStr>
[src]
fn eq(&self, o: &RelativeIriString) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<RelativeIriString> for RelativeIriString
[src]
fn partial_cmp(&self, other: &RelativeIriString) -> Option<Ordering>
[src]
fn lt(&self, other: &RelativeIriString) -> bool
[src]
fn le(&self, other: &RelativeIriString) -> bool
[src]
fn gt(&self, other: &RelativeIriString) -> bool
[src]
fn ge(&self, other: &RelativeIriString) -> bool
[src]
impl PartialOrd<RelativeIriStr> for RelativeIriString
fn partial_cmp(&self, other: &RelativeIriStr) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<RelativeIriString> for RelativeIriStr
fn partial_cmp(&self, other: &RelativeIriString) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<&'_ RelativeIriStr> for RelativeIriString
fn partial_cmp(&self, other: &&RelativeIriStr) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<RelativeIriString> for &'_ RelativeIriStr
fn partial_cmp(&self, other: &RelativeIriString) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<Cow<'_, RelativeIriStr>> for RelativeIriString
fn partial_cmp(&self, other: &Cow<RelativeIriStr>) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<RelativeIriString> for Cow<'_, RelativeIriStr>
fn partial_cmp(&self, other: &RelativeIriString) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<str> for RelativeIriString
fn partial_cmp(&self, other: &str) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<RelativeIriString> for str
fn partial_cmp(&self, other: &RelativeIriString) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<&'_ str> for RelativeIriString
fn partial_cmp(&self, other: &&str) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<RelativeIriString> for &'_ str
fn partial_cmp(&self, other: &RelativeIriString) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<Cow<'_, str>> for RelativeIriString
fn partial_cmp(&self, other: &Cow<str>) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<RelativeIriString> for Cow<'_, str>
fn partial_cmp(&self, other: &RelativeIriString) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<IriReferenceStr> for RelativeIriString
[src]
fn partial_cmp(&self, o: &IriReferenceStr) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<RelativeIriString> for IriReferenceStr
[src]
fn partial_cmp(&self, o: &RelativeIriString) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<&'_ IriReferenceStr> for RelativeIriString
[src]
fn partial_cmp(&self, o: &&IriReferenceStr) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<RelativeIriString> for &'_ IriReferenceStr
[src]
fn partial_cmp(&self, o: &RelativeIriString) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<Cow<'_, IriReferenceStr>> for RelativeIriString
[src]
fn partial_cmp(&self, o: &Cow<IriReferenceStr>) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialOrd<RelativeIriString> for Cow<'_, IriReferenceStr>
[src]
fn partial_cmp(&self, o: &RelativeIriString) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Display for RelativeIriString where
RelativeIriStr: Display,
RelativeIriStr: Display,
impl Debug for RelativeIriString
[src]
impl TryFrom<String> for RelativeIriString
type Error = IriCreationError<String>
The type returned in the event of a conversion error.
fn try_from(inner: String) -> Result<Self, Self::Error>
impl TryFrom<IriReferenceString> for RelativeIriString
[src]
type Error = IriCreationError<String>
The type returned in the event of a conversion error.
fn try_from(v: IriReferenceString) -> Result<Self, Self::Error>
[src]
impl FromStr for RelativeIriString
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
impl Deref for RelativeIriString
type Target = RelativeIriStr
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
impl Hash for RelativeIriString
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl StructuralPartialEq for RelativeIriString
[src]
impl StructuralEq for RelativeIriString
[src]
impl Borrow<str> for RelativeIriString where
str: Borrow<str>,
str: Borrow<str>,
impl Borrow<RelativeIriStr> for RelativeIriString
fn borrow(&self) -> &RelativeIriStr
impl Serialize for RelativeIriString
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for RelativeIriString
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for RelativeIriString
impl Sync for RelativeIriString
impl Unpin for RelativeIriString
impl UnwindSafe for RelativeIriString
impl RefUnwindSafe for RelativeIriString
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,