[−][src]Struct iri_string::types::RiRelativeStr
A borrowed slice of a relative IRI reference.
This corresponds to irelative-ref
rule in RFC 3987
(and relative-ref
rule in RFC 3986).
The rule for irelative-ref
is irelative-part [ "?" iquery ] [ "#" ifragment ]
.
Valid values
This type can have a relative IRI reference.
assert!(IriRelativeStr::new("foo").is_ok()); assert!(IriRelativeStr::new("foo/bar").is_ok()); assert!(IriRelativeStr::new("/foo").is_ok()); assert!(IriRelativeStr::new("//foo/bar").is_ok()); assert!(IriRelativeStr::new("?foo").is_ok()); assert!(IriRelativeStr::new("#foo").is_ok()); assert!(IriRelativeStr::new("foo/bar?baz#qux").is_ok()); // The first path component can have colon if the path is absolute. assert!(IriRelativeStr::new("/foo:bar/").is_ok()); // Second or following path components can have colon. assert!(IriRelativeStr::new("foo/bar://baz/").is_ok()); assert!(IriRelativeStr::new("./foo://bar").is_ok());
Absolute form of a reference is not allowed.
assert!(IriRelativeStr::new("https://example.com/").is_err()); // The first path component cannot have colon, if the path is not absolute. assert!(IriRelativeStr::new("foo:bar").is_err()); assert!(IriRelativeStr::new("foo:").is_err()); assert!(IriRelativeStr::new("foo:/").is_err()); assert!(IriRelativeStr::new("foo://").is_err()); assert!(IriRelativeStr::new("foo:///").is_err()); assert!(IriRelativeStr::new("foo:////").is_err()); assert!(IriRelativeStr::new("foo://///").is_err());
Some characters and sequences cannot used in an IRI reference.
// `<` and `>` cannot directly appear in a relative IRI reference. assert!(IriRelativeStr::new("<not allowed>").is_err()); // Broken percent encoding cannot appear in a relative IRI reference. assert!(IriRelativeStr::new("%").is_err()); assert!(IriRelativeStr::new("%GG").is_err());
Methods
impl<S: Spec> RiRelativeStr<S>
[src]
pub fn new(s: &str) -> Result<&Self, Error>
[src]
Creates a new string.
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.
impl<S: Spec> RiRelativeStr<S>
[src]
pub fn fragment(&self) -> Option<&RiFragmentStr<S>>
[src]
Returns the fragment part if exists.
A leading #
character is truncated if the fragment part exists.
Examples
If the IRI has a fragment part, Some(_)
is returned.
let iri = IriRelativeStr::new("?foo#bar")?; let fragment = IriFragmentStr::new("bar")?; assert_eq!(iri.fragment(), Some(fragment));
let iri = IriRelativeStr::new("#foo")?; let fragment = IriFragmentStr::new("foo")?; assert_eq!(iri.fragment(), Some(fragment));
When the fragment part exists but is empty string, Some(_)
is returned.
let iri = IriRelativeStr::new("#")?; let fragment = IriFragmentStr::new("")?; assert_eq!(iri.fragment(), Some(fragment));
If the IRI has no fragment, None
is returned.
let iri = IriRelativeStr::new("")?; assert_eq!(iri.fragment(), None);
pub fn resolve_against(&self, base: &RiAbsoluteStr<S>) -> RiString<S>
[src]
Returns resolved IRI against the given base IRI, using strict resolver.
About reference resolution output example, see RFC 3986 section 5.4.
About resolver strictness, see RFC 3986 section 5.4.2:
Some parsers allow the scheme name to be present in a relative reference if it is the same as the base URI scheme. This is considered to be a loophole in prior specifications of partial URI RFC1630. Its use should be avoided but is allowed for backward compatibility.
Usual users will want to use strict resolver.
Enabled by alloc
or std
feature.
Trait Implementations
impl<S: Spec> AsRef<RiReferenceStr<S>> for RiRelativeStr<S>
[src]
fn as_ref(&self) -> &RiReferenceStr<S>
[src]
impl AsRef<RiRelativeStr<IriSpec>> for RiRelativeStr<UriSpec>
[src]
fn as_ref(&self) -> &RiRelativeStr<IriSpec>
[src]
impl AsRef<RiRelativeStr<IriSpec>> for RiRelativeString<UriSpec>
[src]
fn as_ref(&self) -> &RiRelativeStr<IriSpec>
[src]
impl<S: Spec> AsRef<RiRelativeStr<S>> for RiRelativeStr<S>
[src]
fn as_ref(&self) -> &RiRelativeStr<S>
[src]
impl<S: Spec> AsRef<RiRelativeStr<S>> for RiRelativeString<S>
[src]
fn as_ref(&self) -> &RiRelativeStr<S>
[src]
impl<S: Spec> AsRef<str> for RiRelativeStr<S>
[src]
impl<S: Spec> Borrow<RiRelativeStr<S>> for RiRelativeString<S>
[src]
fn borrow(&self) -> &RiRelativeStr<S>
[src]
impl<S: Spec> Debug for RiRelativeStr<S>
[src]
impl<'de: 'a, 'a, S: 'de + Spec> Deserialize<'de> for &'a RiRelativeStr<S>
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl<S: Spec> Display for RiRelativeStr<S>
[src]
impl<S: Spec> Eq for RiRelativeStr<S>
[src]
impl<'_, S: Spec> From<&'_ RiRelativeStr<S>> for Arc<RiRelativeStr<S>>
[src]
fn from(s: &RiRelativeStr<S>) -> Self
[src]
impl<'_, S: Spec> From<&'_ RiRelativeStr<S>> for Box<RiRelativeStr<S>>
[src]
fn from(s: &RiRelativeStr<S>) -> Self
[src]
impl<'_, S: Spec> From<&'_ RiRelativeStr<S>> for Rc<RiRelativeStr<S>>
[src]
fn from(s: &RiRelativeStr<S>) -> Self
[src]
impl<'_, S: Spec> From<&'_ RiRelativeStr<S>> for RiRelativeString<S>
[src]
fn from(s: &RiRelativeStr<S>) -> Self
[src]
impl<'a, S: Spec> From<&'a RiRelativeStr<S>> for &'a str
[src]
fn from(s: &'a RiRelativeStr<S>) -> &'a str
[src]
impl<'a, S: Spec> From<&'a RiRelativeStr<S>> for &'a RiReferenceStr<S>
[src]
fn from(s: &'a RiRelativeStr<S>) -> &'a RiReferenceStr<S>
[src]
impl<S: Spec> Hash for RiRelativeStr<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 RiRelativeStr<S>
[src]
fn cmp(&self, other: &Self) -> 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<'_, S: Spec, T: Spec> PartialEq<&'_ RiReferenceStr<T>> for RiRelativeStr<S>
[src]
fn eq(&self, o: &&RiReferenceStr<T>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec> PartialEq<&'_ RiRelativeStr<S>> for str
[src]
fn eq(&self, o: &&RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<&'_ RiRelativeStr<S>> for RiRelativeStr<T>
[src]
fn eq(&self, o: &&RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, '_, S: Spec> PartialEq<&'_ RiRelativeStr<S>> for Cow<'_, str>
[src]
fn eq(&self, o: &&RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, '_, S: Spec, T: Spec> PartialEq<&'_ RiRelativeStr<S>> for Cow<'_, RiRelativeStr<T>>
[src]
fn eq(&self, o: &&RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<&'_ RiRelativeStr<S>> for RiRelativeString<T>
[src]
fn eq(&self, o: &&RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<&'_ RiRelativeStr<S>> for RiReferenceStr<T>
[src]
fn eq(&self, o: &&RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, '_, S: Spec, T: Spec> PartialEq<&'_ RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
[src]
fn eq(&self, o: &&RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<&'_ RiRelativeStr<S>> for RiReferenceString<T>
[src]
fn eq(&self, o: &&RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec> PartialEq<&'_ str> for RiRelativeStr<S>
[src]
impl<'_, S: Spec, T: Spec> PartialEq<Cow<'_, RiReferenceStr<T>>> for RiRelativeStr<S>
[src]
fn eq(&self, o: &Cow<RiReferenceStr<T>>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, '_, S: Spec, T: Spec> PartialEq<Cow<'_, RiReferenceStr<T>>> for &'_ RiRelativeStr<S>
[src]
fn eq(&self, o: &Cow<RiReferenceStr<T>>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, '_, S: Spec, T: Spec> PartialEq<Cow<'_, RiRelativeStr<T>>> for &'_ RiRelativeStr<S>
[src]
fn eq(&self, o: &Cow<RiRelativeStr<T>>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec> PartialEq<Cow<'_, str>> for RiRelativeStr<S>
[src]
impl<'_, '_, S: Spec> PartialEq<Cow<'_, str>> for &'_ RiRelativeStr<S>
[src]
impl<S: Spec, T: Spec> PartialEq<RiReferenceStr<T>> for RiRelativeStr<S>
[src]
fn eq(&self, o: &RiReferenceStr<T>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<RiReferenceStr<T>> for &'_ RiRelativeStr<S>
[src]
fn eq(&self, o: &RiReferenceStr<T>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<S: Spec, T: Spec> PartialEq<RiReferenceString<T>> for RiRelativeStr<S>
[src]
fn eq(&self, o: &RiReferenceString<T>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<RiReferenceString<T>> for &'_ RiRelativeStr<S>
[src]
fn eq(&self, o: &RiReferenceString<T>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<S: Spec> PartialEq<RiRelativeStr<S>> for RiRelativeStr<S>
[src]
impl<S: Spec> PartialEq<RiRelativeStr<S>> for str
[src]
fn eq(&self, o: &RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec> PartialEq<RiRelativeStr<S>> for &'_ str
[src]
fn eq(&self, o: &RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec> PartialEq<RiRelativeStr<S>> for Cow<'_, str>
[src]
fn eq(&self, o: &RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<S: Spec, T: Spec> PartialEq<RiRelativeStr<S>> for RiRelativeString<T>
[src]
fn eq(&self, o: &RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<S: Spec, T: Spec> PartialEq<RiRelativeStr<S>> for RiReferenceStr<T>
[src]
fn eq(&self, o: &RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<RiRelativeStr<S>> for &'_ RiReferenceStr<T>
[src]
fn eq(&self, o: &RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
[src]
fn eq(&self, o: &RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<S: Spec, T: Spec> PartialEq<RiRelativeStr<S>> for RiReferenceString<T>
[src]
fn eq(&self, o: &RiRelativeStr<S>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<RiRelativeStr<T>> for &'_ RiRelativeStr<S>
[src]
fn eq(&self, o: &RiRelativeStr<T>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<S: Spec, T: Spec> PartialEq<RiRelativeString<T>> for RiRelativeStr<S>
[src]
fn eq(&self, o: &RiRelativeString<T>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, S: Spec, T: Spec> PartialEq<RiRelativeString<T>> for &'_ RiRelativeStr<S>
[src]
fn eq(&self, o: &RiRelativeString<T>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<S: Spec> PartialEq<str> for RiRelativeStr<S>
[src]
impl<'_, S: Spec> PartialEq<str> for &'_ RiRelativeStr<S>
[src]
impl<'_, S: Spec, T: Spec> PartialOrd<&'_ RiReferenceStr<T>> for RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &&RiReferenceStr<T>) -> 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<'_, S: Spec> PartialOrd<&'_ RiRelativeStr<S>> for str
[src]
fn partial_cmp(&self, o: &&RiRelativeStr<S>) -> 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<'_, S: Spec, T: Spec> PartialOrd<&'_ RiRelativeStr<S>> for RiRelativeStr<T>
[src]
fn partial_cmp(&self, o: &&RiRelativeStr<S>) -> 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<'_, '_, S: Spec> PartialOrd<&'_ RiRelativeStr<S>> for Cow<'_, str>
[src]
fn partial_cmp(&self, o: &&RiRelativeStr<S>) -> 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<'_, '_, S: Spec, T: Spec> PartialOrd<&'_ RiRelativeStr<S>> for Cow<'_, RiRelativeStr<T>>
[src]
fn partial_cmp(&self, o: &&RiRelativeStr<S>) -> 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<'_, S: Spec, T: Spec> PartialOrd<&'_ RiRelativeStr<S>> for RiRelativeString<T>
[src]
fn partial_cmp(&self, o: &&RiRelativeStr<S>) -> 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<'_, S: Spec, T: Spec> PartialOrd<&'_ RiRelativeStr<S>> for RiReferenceStr<T>
[src]
fn partial_cmp(&self, o: &&RiRelativeStr<S>) -> 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<'_, '_, S: Spec, T: Spec> PartialOrd<&'_ RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
[src]
fn partial_cmp(&self, o: &&RiRelativeStr<S>) -> 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<'_, S: Spec, T: Spec> PartialOrd<&'_ RiRelativeStr<S>> for RiReferenceString<T>
[src]
fn partial_cmp(&self, o: &&RiRelativeStr<S>) -> 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<'_, S: Spec> PartialOrd<&'_ str> for RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &&str) -> 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<'_, S: Spec, T: Spec> PartialOrd<Cow<'_, RiReferenceStr<T>>> for RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &Cow<RiReferenceStr<T>>) -> 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<'_, '_, S: Spec, T: Spec> PartialOrd<Cow<'_, RiReferenceStr<T>>> for &'_ RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &Cow<RiReferenceStr<T>>) -> 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<'_, '_, S: Spec, T: Spec> PartialOrd<Cow<'_, RiRelativeStr<T>>> for &'_ RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &Cow<RiRelativeStr<T>>) -> 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<'_, S: Spec> PartialOrd<Cow<'_, str>> for RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &Cow<str>) -> 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<'_, '_, S: Spec> PartialOrd<Cow<'_, str>> for &'_ RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &Cow<str>) -> 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<S: Spec, T: Spec> PartialOrd<RiReferenceStr<T>> for RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &RiReferenceStr<T>) -> 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<'_, S: Spec, T: Spec> PartialOrd<RiReferenceStr<T>> for &'_ RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &RiReferenceStr<T>) -> 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<S: Spec, T: Spec> PartialOrd<RiReferenceString<T>> for RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &RiReferenceString<T>) -> 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<'_, S: Spec, T: Spec> PartialOrd<RiReferenceString<T>> for &'_ RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &RiReferenceString<T>) -> 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<S: Spec> PartialOrd<RiRelativeStr<S>> for RiRelativeStr<S>
[src]
fn partial_cmp(&self, other: &Self) -> 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<S: Spec> PartialOrd<RiRelativeStr<S>> for str
[src]
fn partial_cmp(&self, o: &RiRelativeStr<S>) -> 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<'_, S: Spec> PartialOrd<RiRelativeStr<S>> for &'_ str
[src]
fn partial_cmp(&self, o: &RiRelativeStr<S>) -> 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<'_, S: Spec> PartialOrd<RiRelativeStr<S>> for Cow<'_, str>
[src]
fn partial_cmp(&self, o: &RiRelativeStr<S>) -> 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<S: Spec, T: Spec> PartialOrd<RiRelativeStr<S>> for RiRelativeString<T>
[src]
fn partial_cmp(&self, o: &RiRelativeStr<S>) -> 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<S: Spec, T: Spec> PartialOrd<RiRelativeStr<S>> for RiReferenceStr<T>
[src]
fn partial_cmp(&self, o: &RiRelativeStr<S>) -> 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<'_, S: Spec, T: Spec> PartialOrd<RiRelativeStr<S>> for &'_ RiReferenceStr<T>
[src]
fn partial_cmp(&self, o: &RiRelativeStr<S>) -> 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<'_, S: Spec, T: Spec> PartialOrd<RiRelativeStr<S>> for Cow<'_, RiReferenceStr<T>>
[src]
fn partial_cmp(&self, o: &RiRelativeStr<S>) -> 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<S: Spec, T: Spec> PartialOrd<RiRelativeStr<S>> for RiReferenceString<T>
[src]
fn partial_cmp(&self, o: &RiRelativeStr<S>) -> 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<'_, S: Spec, T: Spec> PartialOrd<RiRelativeStr<T>> for &'_ RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &RiRelativeStr<T>) -> 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<S: Spec, T: Spec> PartialOrd<RiRelativeString<T>> for RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &RiRelativeString<T>) -> 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<'_, S: Spec, T: Spec> PartialOrd<RiRelativeString<T>> for &'_ RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &RiRelativeString<T>) -> 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<S: Spec> PartialOrd<str> for RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &str) -> 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<'_, S: Spec> PartialOrd<str> for &'_ RiRelativeStr<S>
[src]
fn partial_cmp(&self, o: &str) -> 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<S> Serialize for RiRelativeStr<S>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<S: Spec> ToOwned for RiRelativeStr<S>
[src]
type Owned = RiRelativeString<S>
The resulting type after obtaining ownership.
fn to_owned(&self) -> Self::Owned
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]
impl<'a, S: Spec> TryFrom<&'a RiReferenceStr<S>> for &'a RiRelativeStr<S>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(s: &'a RiReferenceStr<S>) -> Result<Self, Self::Error>
[src]
impl<'a, S: Spec> TryFrom<&'a str> for &'a RiRelativeStr<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for RiRelativeStr<S>
impl<S> Send for RiRelativeStr<S>
impl<S> Sync for RiRelativeStr<S>
impl<S> Unpin for RiRelativeStr<S>
impl<S> UnwindSafe for RiRelativeStr<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> 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>,