[−][src]Struct iri_string::types::RiFragmentString
An owned string of an IRI fragment (i.e. after the first # character).
This corresponds to ifragment rule in RFC 3987 (and fragment rule in RFC 3986).
The rule for absolute-IRI is *( ipchar / "/" / "?" ).
For details, see the documentation for RiFragmentStr.
Enabled by alloc or std feature.
Methods
impl<S: Spec> RiFragmentString<S>[src]
pub fn shrink_to_fit(&mut self)[src]
Shrinks the capacity of the inner buffer to match its length.
Methods from Deref<Target = RiFragmentStr<S>>
pub fn as_str(&self) -> &str[src]
Returns &str.
pub fn len(&self) -> usize[src]
Returns the string length.
pub fn is_empty(&self) -> bool[src]
Returns whether the string is empty.
Trait Implementations
impl AsRef<RiFragmentStr<IriSpec>> for RiFragmentString<UriSpec>[src]
fn as_ref(&self) -> &RiFragmentStr<IriSpec>[src]
impl<S: Spec> AsRef<RiFragmentStr<S>> for RiFragmentString<S>[src]
fn as_ref(&self) -> &RiFragmentStr<S>[src]
impl<S: Spec> AsRef<str> for RiFragmentString<S>[src]
impl<S: Spec> Borrow<RiFragmentStr<S>> for RiFragmentString<S>[src]
fn borrow(&self) -> &RiFragmentStr<S>[src]
impl<S: Spec> Borrow<str> for RiFragmentString<S>[src]
impl<S: Spec> Clone for RiFragmentString<S>[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<S: Spec> Debug for RiFragmentString<S>[src]
impl<S: Spec> Deref for RiFragmentString<S>[src]
type Target = RiFragmentStr<S>
The resulting type after dereferencing.
fn deref(&self) -> &RiFragmentStr<S>[src]
impl<'de, S: Spec> Deserialize<'de> for RiFragmentString<S>[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl<S: Spec> Display for RiFragmentString<S>[src]
impl<S: Spec> Eq for RiFragmentString<S>[src]
impl<'_, S: Spec> From<&'_ RiFragmentStr<S>> for RiFragmentString<S>[src]
fn from(s: &RiFragmentStr<S>) -> Self[src]
impl<S: Spec> From<RiFragmentString<S>> for String[src]
fn from(s: RiFragmentString<S>) -> Self[src]
impl<S: Spec> FromStr for RiFragmentString<S>[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
impl<S: Spec> Hash for RiFragmentString<S>[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<S: Spec> Ord for RiFragmentString<S>[src]
fn cmp(&self, other: &Self) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> Self1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self[src]
impl<'_, S: Spec, T: Spec> PartialEq<&'_ RiFragmentStr<S>> for RiFragmentString<T>[src]
fn eq(&self, o: &&RiFragmentStr<S>) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec> PartialEq<&'_ str> for RiFragmentString<S>[src]
impl<'_, S: Spec, T: Spec> PartialEq<Cow<'_, RiFragmentStr<S>>> for RiFragmentString<T>[src]
fn eq(&self, o: &Cow<RiFragmentStr<S>>) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec> PartialEq<Cow<'_, str>> for RiFragmentString<S>[src]
impl<S: Spec, T: Spec> PartialEq<RiFragmentStr<S>> for RiFragmentString<T>[src]
fn eq(&self, o: &RiFragmentStr<S>) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec> PartialEq<RiFragmentString<S>> for str[src]
fn eq(&self, o: &RiFragmentString<S>) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec> PartialEq<RiFragmentString<S>> for &'_ str[src]
fn eq(&self, o: &RiFragmentString<S>) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec> PartialEq<RiFragmentString<S>> for Cow<'_, str>[src]
fn eq(&self, o: &RiFragmentString<S>) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec> PartialEq<RiFragmentString<S>> for String[src]
fn eq(&self, o: &RiFragmentString<S>) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec, T: Spec> PartialEq<RiFragmentString<T>> for RiFragmentString<S>[src]
fn eq(&self, other: &RiFragmentString<T>) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec, T: Spec> PartialEq<RiFragmentString<T>> for RiFragmentStr<S>[src]
fn eq(&self, o: &RiFragmentString<T>) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<RiFragmentString<T>> for &'_ RiFragmentStr<S>[src]
fn eq(&self, o: &RiFragmentString<T>) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<RiFragmentString<T>> for Cow<'_, RiFragmentStr<S>>[src]
fn eq(&self, o: &RiFragmentString<T>) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec> PartialEq<String> for RiFragmentString<S>[src]
impl<S: Spec> PartialEq<str> for RiFragmentString<S>[src]
impl<'_, S: Spec, T: Spec> PartialOrd<&'_ RiFragmentStr<S>> for RiFragmentString<T>[src]
fn partial_cmp(&self, o: &&RiFragmentStr<S>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec> PartialOrd<&'_ str> for RiFragmentString<S>[src]
fn partial_cmp(&self, o: &&str) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialOrd<Cow<'_, RiFragmentStr<S>>> for RiFragmentString<T>[src]
fn partial_cmp(&self, o: &Cow<RiFragmentStr<S>>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec> PartialOrd<Cow<'_, str>> for RiFragmentString<S>[src]
fn partial_cmp(&self, o: &Cow<str>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec, T: Spec> PartialOrd<RiFragmentStr<S>> for RiFragmentString<T>[src]
fn partial_cmp(&self, o: &RiFragmentStr<S>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec> PartialOrd<RiFragmentString<S>> for str[src]
fn partial_cmp(&self, o: &RiFragmentString<S>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec> PartialOrd<RiFragmentString<S>> for &'_ str[src]
fn partial_cmp(&self, o: &RiFragmentString<S>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec> PartialOrd<RiFragmentString<S>> for Cow<'_, str>[src]
fn partial_cmp(&self, o: &RiFragmentString<S>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec> PartialOrd<RiFragmentString<S>> for String[src]
fn partial_cmp(&self, o: &RiFragmentString<S>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec, T: Spec> PartialOrd<RiFragmentString<T>> for RiFragmentString<S>[src]
fn partial_cmp(&self, other: &RiFragmentString<T>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec, T: Spec> PartialOrd<RiFragmentString<T>> for RiFragmentStr<S>[src]
fn partial_cmp(&self, o: &RiFragmentString<T>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialOrd<RiFragmentString<T>> for &'_ RiFragmentStr<S>[src]
fn partial_cmp(&self, o: &RiFragmentString<T>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialOrd<RiFragmentString<T>> for Cow<'_, RiFragmentStr<S>>[src]
fn partial_cmp(&self, o: &RiFragmentString<T>) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec> PartialOrd<String> for RiFragmentString<S>[src]
fn partial_cmp(&self, o: &String) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<S: Spec> PartialOrd<str> for RiFragmentString<S>[src]
fn partial_cmp(&self, o: &str) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<S> Serialize for RiFragmentString<S>[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'_, S: Spec> TryFrom<&'_ str> for RiFragmentString<S>[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(s: &str) -> Result<Self, Self::Error>[src]
impl<S: Spec> TryFrom<String> for RiFragmentString<S>[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for RiFragmentString<S>
impl<S> Send for RiFragmentString<S>
impl<S> Sync for RiFragmentString<S>
impl<S> Unpin for RiFragmentString<S>
impl<S> UnwindSafe for RiFragmentString<S>
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,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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>,