[][src]Struct iri_string::types::RelativeIriString

pub struct 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>

pub fn as_str(&self) -> &str[src]

Returns &str.

Trait Implementations

impl AsRef<str> for RelativeIriString where
    str: AsRef<str>, 

impl AsRef<RelativeIriStr> for RelativeIriString

impl AsRef<IriReferenceStr> for RelativeIriString[src]

impl From<RelativeIriString> for String

impl From<RelativeIriString> for IriReferenceString[src]

impl Clone for RelativeIriString[src]

impl Eq for RelativeIriString[src]

impl Ord for RelativeIriString[src]

impl PartialEq<RelativeIriString> for RelativeIriString[src]

impl PartialEq<RelativeIriStr> for RelativeIriString

impl PartialEq<RelativeIriString> for RelativeIriStr

impl<'_> PartialEq<&'_ RelativeIriStr> for RelativeIriString

impl<'_> PartialEq<RelativeIriString> for &'_ RelativeIriStr

impl<'_> PartialEq<Cow<'_, RelativeIriStr>> for RelativeIriString

impl<'_> PartialEq<RelativeIriString> for Cow<'_, RelativeIriStr>

impl PartialEq<str> for RelativeIriString

impl PartialEq<RelativeIriString> for str

impl<'_> PartialEq<&'_ str> for RelativeIriString

impl<'_> PartialEq<RelativeIriString> for &'_ str

impl<'_> PartialEq<Cow<'_, str>> for RelativeIriString

impl<'_> PartialEq<RelativeIriString> for Cow<'_, str>

impl PartialEq<IriReferenceStr> for RelativeIriString[src]

impl PartialEq<RelativeIriString> for IriReferenceStr[src]

impl<'_> PartialEq<&'_ IriReferenceStr> for RelativeIriString[src]

impl<'_> PartialEq<RelativeIriString> for &'_ IriReferenceStr[src]

impl<'_> PartialEq<Cow<'_, IriReferenceStr>> for RelativeIriString[src]

impl<'_> PartialEq<RelativeIriString> for Cow<'_, IriReferenceStr>[src]

impl PartialOrd<RelativeIriString> for RelativeIriString[src]

impl PartialOrd<RelativeIriStr> for RelativeIriString

impl PartialOrd<RelativeIriString> for RelativeIriStr

impl<'_> PartialOrd<&'_ RelativeIriStr> for RelativeIriString

impl<'_> PartialOrd<RelativeIriString> for &'_ RelativeIriStr

impl<'_> PartialOrd<Cow<'_, RelativeIriStr>> for RelativeIriString

impl<'_> PartialOrd<RelativeIriString> for Cow<'_, RelativeIriStr>

impl PartialOrd<str> for RelativeIriString

impl PartialOrd<RelativeIriString> for str

impl<'_> PartialOrd<&'_ str> for RelativeIriString

impl<'_> PartialOrd<RelativeIriString> for &'_ str

impl<'_> PartialOrd<Cow<'_, str>> for RelativeIriString

impl<'_> PartialOrd<RelativeIriString> for Cow<'_, str>

impl PartialOrd<IriReferenceStr> for RelativeIriString[src]

impl PartialOrd<RelativeIriString> for IriReferenceStr[src]

impl<'_> PartialOrd<&'_ IriReferenceStr> for RelativeIriString[src]

impl<'_> PartialOrd<RelativeIriString> for &'_ IriReferenceStr[src]

impl<'_> PartialOrd<Cow<'_, IriReferenceStr>> for RelativeIriString[src]

impl<'_> PartialOrd<RelativeIriString> for Cow<'_, IriReferenceStr>[src]

impl Display for RelativeIriString where
    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.

impl TryFrom<IriReferenceString> for RelativeIriString[src]

type Error = IriCreationError<String>

The type returned in the event of a conversion error.

impl FromStr for RelativeIriString

type Err = Error

The associated error which can be returned from parsing.

impl Deref for RelativeIriString

type Target = RelativeIriStr

The resulting type after dereferencing.

impl Hash for RelativeIriString[src]

impl StructuralPartialEq for RelativeIriString[src]

impl StructuralEq for RelativeIriString[src]

impl Borrow<str> for RelativeIriString where
    str: Borrow<str>, 

impl Borrow<RelativeIriStr> for RelativeIriString

impl Serialize for RelativeIriString[src]

impl<'de> Deserialize<'de> for RelativeIriString[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]