[−][src]Struct iri_string::types::IriReferenceStr
A borrowed slice of an IRI reference.
This corresponds to IRI-reference
rule in RFC 3987.
This is IRI / irelative-ref
In other words, this is union of IriStr
and `RelativeIriStr.
Methods
impl IriReferenceStr
[src]
pub fn new(s: &str) -> Result<&Self, Error>
[src]
Creates a new &IriReferenceStr
.
Examples
assert!(IriReferenceStr::new("https://user:pass@example.com:8080").is_ok()); assert!(IriReferenceStr::new("https://example.com/").is_ok()); assert!(IriReferenceStr::new("https://example.com/foo?bar=baz").is_ok()); assert!(IriReferenceStr::new("https://example.com/foo?bar=baz#qux").is_ok()); assert!(IriReferenceStr::new("foo:bar").is_ok()); assert!(IriReferenceStr::new("foo/bar").is_ok()); assert!(IriReferenceStr::new("/foo/bar").is_ok()); assert!(IriReferenceStr::new("//foo/bar").is_ok()); assert!(IriReferenceStr::new("#foo").is_ok()); // `<` and `>` cannot directly appear in an IRI. assert!(IriReferenceStr::new("<not allowed>").is_err()); // > When authority is not present, the path cannot begin with two slash characters ("//"). // > // > --- [RFC 3986 section 3](https://tools.ietf.org/html/rfc3986#section-3) assert!(IriReferenceStr::new("foo:////").is_err());
pub fn to_iri(&self) -> Result<&IriStr, &RelativeIriStr>
[src]
Returns the string as &IriStr
, if it is valid as an IRI.
If it is not an IRI, then &RelativeIriStr
is returned as Err(_)
.
pub fn to_relative_iri(&self) -> Result<&RelativeIriStr, &IriStr>
[src]
Returns the string as &RelativeIriStr
, if it is valid as an IRI.
If it is not an IRI, then &IriStr
is returned as Err(_)
.
pub fn resolve_against(&self, base: &AbsoluteIriStr) -> IriString
[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.
pub fn resolve(&self, base: &AbsoluteIriStr) -> IriString
[src]
Renamed to resolve_against()
Returns resolved IRI against the given base IRI, using strict resolver.
pub fn fragment(&self) -> Option<&IriFragmentStr>
[src]
Returns the fragment part if exists.
A leading #
character is truncated if the fragment part exists.
Examples
let iri = IriReferenceStr::new("foo://bar/baz?qux=quux#corge")?; let fragment = IriFragmentStr::new("corge")?; assert_eq!(iri.fragment(), Some(fragment));
let iri = IriReferenceStr::new("foo://bar/baz?qux=quux#")?; let fragment = IriFragmentStr::new("")?; assert_eq!(iri.fragment(), Some(fragment));
let iri = IriReferenceStr::new("foo://bar/baz?qux=quux")?; assert_eq!(iri.fragment(), None);
let iri = IriReferenceStr::new("#foo")?; let fragment = IriFragmentStr::new("foo")?; assert_eq!(iri.fragment(), Some(fragment));
let iri = IriReferenceStr::new("")?; assert_eq!(iri.fragment(), None);
pub fn as_str(&self) -> &str
[src]
Returns &str
.
Trait Implementations
impl AsRef<IriReferenceStr> for AbsoluteIriString
[src]
fn as_ref(&self) -> &IriReferenceStr
[src]
impl AsRef<IriReferenceStr> for AbsoluteIriStr
[src]
fn as_ref(&self) -> &IriReferenceStr
[src]
impl AsRef<IriReferenceStr> for IriString
[src]
fn as_ref(&self) -> &IriReferenceStr
[src]
impl AsRef<IriReferenceStr> for IriStr
[src]
fn as_ref(&self) -> &IriReferenceStr
[src]
impl AsRef<str> for IriReferenceStr where
str: AsRef<str>,
str: AsRef<str>,
impl AsRef<IriReferenceStr> for IriReferenceStr
fn as_ref(&self) -> &IriReferenceStr
impl AsRef<IriReferenceStr> for IriReferenceString
fn as_ref(&self) -> &IriReferenceStr
impl AsRef<IriReferenceStr> for RelativeIriString
[src]
fn as_ref(&self) -> &IriReferenceStr
[src]
impl AsRef<IriReferenceStr> for RelativeIriStr
[src]
fn as_ref(&self) -> &IriReferenceStr
[src]
impl<'a> From<&'a AbsoluteIriStr> for &'a IriReferenceStr
[src]
fn from(s: &'a AbsoluteIriStr) -> &'a IriReferenceStr
[src]
impl<'a> From<&'a IriStr> for &'a IriReferenceStr
[src]
fn from(s: &'a IriStr) -> &'a IriReferenceStr
[src]
impl<'a> From<&'a IriReferenceStr> for Arc<IriReferenceStr> where
Arc<str>: From<&'a str>,
Arc<str>: From<&'a str>,
fn from(s: &'a IriReferenceStr) -> Self
impl<'a> From<&'a IriReferenceStr> for Box<IriReferenceStr> where
Box<str>: From<&'a str>,
Box<str>: From<&'a str>,
fn from(s: &'a IriReferenceStr) -> Self
impl<'a> From<&'a IriReferenceStr> for Rc<IriReferenceStr> where
Rc<str>: From<&'a str>,
Rc<str>: From<&'a str>,
fn from(s: &'a IriReferenceStr) -> Self
impl<'a> From<&'a RelativeIriStr> for &'a IriReferenceStr
[src]
fn from(s: &'a RelativeIriStr) -> &'a IriReferenceStr
[src]
impl<'a> Default for &'a IriReferenceStr where
&'a str: Default,
&'a str: Default,
fn default() -> Self
impl Eq for IriReferenceStr
[src]
impl Ord for IriReferenceStr
[src]
fn cmp(&self, other: &IriReferenceStr) -> 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<IriReferenceStr> for AbsoluteIriString
[src]
fn eq(&self, o: &IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<AbsoluteIriString> for IriReferenceStr
[src]
fn eq(&self, o: &AbsoluteIriString) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ IriReferenceStr> for AbsoluteIriString
[src]
fn eq(&self, o: &&IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<AbsoluteIriString> for &'_ IriReferenceStr
[src]
fn eq(&self, o: &AbsoluteIriString) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<IriReferenceStr> for AbsoluteIriStr
[src]
fn eq(&self, o: &IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<AbsoluteIriStr> for IriReferenceStr
[src]
fn eq(&self, o: &AbsoluteIriStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ IriReferenceStr> for AbsoluteIriStr
[src]
fn eq(&self, o: &&IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<AbsoluteIriStr> for &'_ IriReferenceStr
[src]
fn eq(&self, o: &AbsoluteIriStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<IriReferenceStr> for &'_ AbsoluteIriStr
[src]
fn eq(&self, o: &IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ AbsoluteIriStr> for IriReferenceStr
[src]
fn eq(&self, o: &&AbsoluteIriStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<IriReferenceStr> for IriString
[src]
fn eq(&self, o: &IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<IriString> for IriReferenceStr
[src]
impl<'_> PartialEq<&'_ IriReferenceStr> for IriString
[src]
fn eq(&self, o: &&IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<IriString> for &'_ IriReferenceStr
[src]
impl PartialEq<IriReferenceStr> for IriStr
[src]
fn eq(&self, o: &IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<IriStr> for IriReferenceStr
[src]
impl<'_> PartialEq<&'_ IriReferenceStr> for IriStr
[src]
fn eq(&self, o: &&IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<IriStr> for &'_ IriReferenceStr
[src]
impl<'_> PartialEq<IriReferenceStr> for &'_ IriStr
[src]
fn eq(&self, o: &IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ IriStr> for IriReferenceStr
[src]
impl PartialEq<IriReferenceStr> for IriReferenceStr
[src]
fn eq(&self, other: &IriReferenceStr) -> bool
[src]
fn ne(&self, other: &IriReferenceStr) -> bool
[src]
impl<'_> PartialEq<&'_ IriReferenceStr> for IriReferenceStr
fn eq(&self, other: &&IriReferenceStr) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<IriReferenceStr> for &'_ IriReferenceStr
fn eq(&self, other: &IriReferenceStr) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<Cow<'_, IriReferenceStr>> for IriReferenceStr
fn eq(&self, other: &Cow<IriReferenceStr>) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<IriReferenceStr> for Cow<'_, IriReferenceStr>
fn eq(&self, other: &IriReferenceStr) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<str> for IriReferenceStr
impl PartialEq<IriReferenceStr> for str
fn eq(&self, other: &IriReferenceStr) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ str> for IriReferenceStr
impl<'_> PartialEq<IriReferenceStr> for &'_ str
fn eq(&self, other: &IriReferenceStr) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<str> for &'_ IriReferenceStr
impl<'_> PartialEq<&'_ IriReferenceStr> for str
fn eq(&self, other: &&IriReferenceStr) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<Cow<'_, str>> for IriReferenceStr
impl<'_> PartialEq<IriReferenceStr> for Cow<'_, str>
fn eq(&self, other: &IriReferenceStr) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_, '_> PartialEq<Cow<'_, str>> for &'_ IriReferenceStr
impl<'_, '_> PartialEq<&'_ IriReferenceStr> for Cow<'_, str>
fn eq(&self, other: &&IriReferenceStr) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<IriReferenceStr> for IriReferenceString
fn eq(&self, other: &IriReferenceStr) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<IriReferenceString> for IriReferenceStr
fn eq(&self, other: &IriReferenceString) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ IriReferenceStr> for IriReferenceString
fn eq(&self, other: &&IriReferenceStr) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<IriReferenceString> for &'_ IriReferenceStr
fn eq(&self, other: &IriReferenceString) -> 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<IriReferenceStr> for RelativeIriStr
[src]
fn eq(&self, o: &IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<RelativeIriStr> for IriReferenceStr
[src]
fn eq(&self, o: &RelativeIriStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ IriReferenceStr> for RelativeIriStr
[src]
fn eq(&self, o: &&IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<RelativeIriStr> for &'_ IriReferenceStr
[src]
fn eq(&self, o: &RelativeIriStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<IriReferenceStr> for &'_ RelativeIriStr
[src]
fn eq(&self, o: &IriReferenceStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ RelativeIriStr> for IriReferenceStr
[src]
fn eq(&self, o: &&RelativeIriStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<IriReferenceStr> for AbsoluteIriString
[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<AbsoluteIriString> for IriReferenceStr
[src]
fn partial_cmp(&self, o: &AbsoluteIriString) -> 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 AbsoluteIriString
[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<AbsoluteIriString> for &'_ IriReferenceStr
[src]
fn partial_cmp(&self, o: &AbsoluteIriString) -> 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 AbsoluteIriStr
[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<AbsoluteIriStr> for IriReferenceStr
[src]
fn partial_cmp(&self, o: &AbsoluteIriStr) -> 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 AbsoluteIriStr
[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<AbsoluteIriStr> for &'_ IriReferenceStr
[src]
fn partial_cmp(&self, o: &AbsoluteIriStr) -> 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 &'_ AbsoluteIriStr
[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<&'_ AbsoluteIriStr> for IriReferenceStr
[src]
fn partial_cmp(&self, o: &&AbsoluteIriStr) -> 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 IriString
[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<IriString> for IriReferenceStr
[src]
fn partial_cmp(&self, o: &IriString) -> 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 IriString
[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<IriString> for &'_ IriReferenceStr
[src]
fn partial_cmp(&self, o: &IriString) -> 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 IriStr
[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<IriStr> for IriReferenceStr
[src]
fn partial_cmp(&self, o: &IriStr) -> 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 IriStr
[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<IriStr> for &'_ IriReferenceStr
[src]
fn partial_cmp(&self, o: &IriStr) -> 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 &'_ IriStr
[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<&'_ IriStr> for IriReferenceStr
[src]
fn partial_cmp(&self, o: &&IriStr) -> 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 IriReferenceStr
[src]
fn partial_cmp(&self, other: &IriReferenceStr) -> Option<Ordering>
[src]
fn lt(&self, other: &IriReferenceStr) -> bool
[src]
fn le(&self, other: &IriReferenceStr) -> bool
[src]
fn gt(&self, other: &IriReferenceStr) -> bool
[src]
fn ge(&self, other: &IriReferenceStr) -> bool
[src]
impl<'_> PartialOrd<&'_ IriReferenceStr> for IriReferenceStr
fn partial_cmp(&self, other: &&IriReferenceStr) -> 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 &'_ IriReferenceStr
fn partial_cmp(&self, other: &IriReferenceStr) -> 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<'_, IriReferenceStr>> for IriReferenceStr
fn partial_cmp(&self, other: &Cow<IriReferenceStr>) -> 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 Cow<'_, IriReferenceStr>
fn partial_cmp(&self, other: &IriReferenceStr) -> 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 IriReferenceStr
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<IriReferenceStr> for str
fn partial_cmp(&self, other: &IriReferenceStr) -> 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 IriReferenceStr
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<IriReferenceStr> for &'_ str
fn partial_cmp(&self, other: &IriReferenceStr) -> 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 &'_ IriReferenceStr
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<&'_ IriReferenceStr> for str
fn partial_cmp(&self, other: &&IriReferenceStr) -> 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 IriReferenceStr
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<IriReferenceStr> for Cow<'_, str>
fn partial_cmp(&self, other: &IriReferenceStr) -> 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 &'_ IriReferenceStr
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<&'_ IriReferenceStr> for Cow<'_, str>
fn partial_cmp(&self, other: &&IriReferenceStr) -> 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 IriReferenceString
fn partial_cmp(&self, other: &IriReferenceStr) -> 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<IriReferenceString> for IriReferenceStr
fn partial_cmp(&self, other: &IriReferenceString) -> 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 IriReferenceString
fn partial_cmp(&self, other: &&IriReferenceStr) -> 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<IriReferenceString> for &'_ IriReferenceStr
fn partial_cmp(&self, other: &IriReferenceString) -> 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<IriReferenceStr> for RelativeIriStr
[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<RelativeIriStr> for IriReferenceStr
[src]
fn partial_cmp(&self, o: &RelativeIriStr) -> 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 RelativeIriStr
[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<RelativeIriStr> for &'_ IriReferenceStr
[src]
fn partial_cmp(&self, o: &RelativeIriStr) -> 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 &'_ RelativeIriStr
[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<&'_ RelativeIriStr> for IriReferenceStr
[src]
fn partial_cmp(&self, o: &&RelativeIriStr) -> 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 ToOwned for IriReferenceStr where
String: From<&'a str>,
String: From<&'a str>,
type Owned = IriReferenceString
The resulting type after obtaining ownership.
fn to_owned(&self) -> Self::Owned
fn clone_into(&self, target: &mut Self::Owned)
[src]
impl Display for IriReferenceStr where
str: Display,
str: Display,
impl Debug for IriReferenceStr
[src]
impl<'a> TryFrom<&'a IriReferenceStr> for &'a AbsoluteIriStr
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(v: &'a IriReferenceStr) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<&'a IriReferenceStr> for &'a IriStr
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(v: &'a IriReferenceStr) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<&'a str> for &'a IriReferenceStr
type Error = Error
The type returned in the event of a conversion error.
fn try_from(s: &'a str) -> Result<Self, Self::Error>
impl<'a> TryFrom<&'a IriReferenceStr> for &'a RelativeIriStr
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(v: &'a IriReferenceStr) -> Result<Self, Self::Error>
[src]
impl Deref for IriReferenceStr
impl Hash for IriReferenceStr
[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 IriReferenceStr
[src]
impl StructuralEq for IriReferenceStr
[src]
impl Borrow<IriReferenceStr> for IriReferenceString
fn borrow(&self) -> &IriReferenceStr
impl Serialize for IriReferenceStr
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de: 'a, 'a> Deserialize<'de> for &'a IriReferenceStr
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for IriReferenceStr
impl Sync for IriReferenceStr
impl Unpin for IriReferenceStr
impl UnwindSafe for IriReferenceStr
impl RefUnwindSafe for IriReferenceStr
Blanket Implementations
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> 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,