Struct iri_string::types::RiAbsoluteString
source · pub struct RiAbsoluteString<S> { /* private fields */ }
Expand description
An owned string of an absolute IRI without fragment part.
This corresponds to absolute-IRI
rule in RFC 3987
(and absolute-URI
rule in RFC 3986).
The rule for absolute-IRI
is scheme ":" ihier-part [ "?" iquery ]
.
In other words, this is RiString
without fragment part.
If you want to accept fragment part, use RiString
.
For details, see the document for RiAbsoluteStr
.
Enabled by alloc
or std
feature.
Implementations§
source§impl<S: Spec> RiAbsoluteString<S>
impl<S: Spec> RiAbsoluteString<S>
sourcepub unsafe fn new_unchecked(s: String) -> Self
pub unsafe fn new_unchecked(s: String) -> Self
Creates a new string without validation.
This does not validate the given string, so it is caller’s responsibility to ensure the given string is valid.
§Safety
The given string must be syntactically valid as Self
type.
If not, any use of the returned value or the call of this
function itself may result in undefined behavior.
sourcepub fn shrink_to_fit(&mut self)
pub fn shrink_to_fit(&mut self)
Shrinks the capacity of the inner buffer to match its length.
sourcepub fn as_slice(&self) -> &RiAbsoluteStr<S>
pub fn as_slice(&self) -> &RiAbsoluteStr<S>
Returns the borrowed IRI string slice.
This is equivalent to &*self
.
source§impl<S: Spec> RiAbsoluteString<S>
impl<S: Spec> RiAbsoluteString<S>
sourcepub fn remove_password_inline(&mut self)
pub fn remove_password_inline(&mut self)
Removes the password completely (including separator colon) from self
even if it is empty.
§Examples
use iri_string::types::IriAbsoluteString;
let mut iri = IriAbsoluteString::try_from("http://user:password@example.com/path?query")?;
iri.remove_password_inline();
assert_eq!(iri, "http://user@example.com/path?query");
Even if the password is empty, the password and separator will be removed.
use iri_string::types::IriAbsoluteString;
let mut iri = IriAbsoluteString::try_from("http://user:@example.com/path?query")?;
iri.remove_password_inline();
assert_eq!(iri, "http://user@example.com/path?query");
sourcepub fn remove_nonempty_password_inline(&mut self)
pub fn remove_nonempty_password_inline(&mut self)
Replaces the non-empty password in self
to the empty password.
This leaves the separator colon if the password part was available.
§Examples
use iri_string::types::IriAbsoluteString;
let mut iri = IriAbsoluteString::try_from("http://user:password@example.com/path?query")?;
iri.remove_nonempty_password_inline();
assert_eq!(iri, "http://user:@example.com/path?query");
If the password is empty, it is left as is.
use iri_string::types::IriAbsoluteString;
let mut iri = IriAbsoluteString::try_from("http://user:@example.com/path?query")?;
iri.remove_nonempty_password_inline();
assert_eq!(iri, "http://user:@example.com/path?query");
source§impl RiAbsoluteString<IriSpec>
impl RiAbsoluteString<IriSpec>
Conversion from an IRI into a URI.
sourcepub fn encode_to_uri_inline(&mut self)
Available on crate feature alloc
only.
pub fn encode_to_uri_inline(&mut self)
alloc
only.Percent-encodes the IRI into a valid URI that identifies the equivalent resource.
After the encode, the IRI is also a valid URI.
If you want a new URI string rather than modifying the IRI
string, or if you need more precise control over memory
allocation and buffer handling, use
encode_to_uri
method.
§Panics
Panics if the memory allocation failed.
§Examples
#[cfg(feature = "alloc")] {
use iri_string::types::IriAbsoluteString;
let mut iri = IriAbsoluteString::try_from("http://example.com/?alpha=\u{03B1}")?;
iri.encode_to_uri_inline();
assert_eq!(iri, "http://example.com/?alpha=%CE%B1");
sourcepub fn try_encode_to_uri_inline(&mut self) -> Result<(), TryReserveError>
Available on crate feature alloc
only.
pub fn try_encode_to_uri_inline(&mut self) -> Result<(), TryReserveError>
alloc
only.Percent-encodes the IRI into a valid URI that identifies the equivalent resource.
After the encode, the IRI is also a valid URI.
If you want a new URI string rather than modifying the IRI
string, or if you need more precise control over memory
allocation and buffer handling, use
encode_to_uri
method.
§Examples
#[cfg(feature = "alloc")] {
use iri_string::types::IriAbsoluteString;
let mut iri = IriAbsoluteString::try_from("http://example.com/?alpha=\u{03B1}")?;
iri.try_encode_to_uri_inline()
.expect("failed to allocate memory");
assert_eq!(iri, "http://example.com/?alpha=%CE%B1");
sourcepub fn encode_into_uri(self) -> UriAbsoluteString
Available on crate feature alloc
only.
pub fn encode_into_uri(self) -> UriAbsoluteString
alloc
only.Percent-encodes the IRI into a valid URI that identifies the equivalent resource.
If you want a new URI string rather than modifying the IRI
string, or if you need more precise control over memory
allocation and buffer handling, use
encode_to_uri
method.
§Examples
#[cfg(feature = "alloc")] {
use iri_string::types::{IriAbsoluteString, UriAbsoluteString};
let iri = IriAbsoluteString::try_from("http://example.com/?alpha=\u{03B1}")?;
// Type annotation here is not necessary.
let uri: UriAbsoluteString = iri.encode_into_uri();
assert_eq!(uri, "http://example.com/?alpha=%CE%B1");
sourcepub fn try_encode_into_uri(self) -> Result<UriAbsoluteString, TryReserveError>
Available on crate feature alloc
only.
pub fn try_encode_into_uri(self) -> Result<UriAbsoluteString, TryReserveError>
alloc
only.Percent-encodes the IRI into a valid URI that identifies the equivalent resource.
If you want a new URI string rather than modifying the IRI
string, or if you need more precise control over memory
allocation and buffer handling, use
encode_to_uri
method.
§Examples
#[cfg(feature = "alloc")] {
use iri_string::types::{IriAbsoluteString, UriAbsoluteString};
let iri = IriAbsoluteString::try_from("http://example.com/?alpha=\u{03B1}")?;
// Type annotation here is not necessary.
let uri: UriAbsoluteString = iri.try_encode_into_uri()
.expect("failed to allocate memory");
assert_eq!(uri, "http://example.com/?alpha=%CE%B1");
sourcepub fn try_into_uri(self) -> Result<UriAbsoluteString, IriAbsoluteString>
Available on crate feature alloc
only.
pub fn try_into_uri(self) -> Result<UriAbsoluteString, IriAbsoluteString>
alloc
only.Converts an IRI into a URI without modification, if possible.
§Examples
use iri_string::types::{IriAbsoluteString, UriAbsoluteString};
let ascii_iri = IriAbsoluteString::try_from("http://example.com/?alpha=%CE%B1")?;
assert_eq!(
ascii_iri.try_into_uri().map(|uri| uri.to_string()),
Ok("http://example.com/?alpha=%CE%B1".to_string())
);
let nonascii_iri = IriAbsoluteString::try_from("http://example.com/?alpha=\u{03B1}")?;
assert_eq!(
nonascii_iri.try_into_uri().map_err(|iri| iri.to_string()),
Err("http://example.com/?alpha=\u{03B1}".to_string())
);
Methods from Deref<Target = RiAbsoluteStr<S>>§
sourcepub fn ensure_rfc3986_normalizable(&self) -> Result<(), Error>
pub fn ensure_rfc3986_normalizable(&self) -> Result<(), Error>
Returns Ok(())
if the IRI is normalizable by the RFC 3986 algorithm.
§Examples
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("HTTP://example.COM/foo/%2e/bar/..")?;
assert!(iri.ensure_rfc3986_normalizable().is_ok());
let iri2 = IriAbsoluteStr::new("scheme:/..//bar")?;
// The normalization result would be `scheme://bar` according to RFC
// 3986, but it is unintended and should be treated as a failure.
// This crate automatically handles this case so that `.normalize()` won't fail.
assert!(!iri.ensure_rfc3986_normalizable().is_err());
sourcepub fn is_normalized(&self) -> bool
pub fn is_normalized(&self) -> bool
Returns true
if the IRI is already normalized.
This returns the same result as self.normalize().to_string() == self
,
but does this more efficiently without heap allocation.
§Examples
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("HTTP://example.COM/foo/./bar/%2e%2e/../baz?query")?;
assert!(!iri.is_normalized());
let normalized = iri.normalize().to_dedicated_string();
assert_eq!(normalized, "http://example.com/baz?query");
assert!(normalized.is_normalized());
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("scheme:/.///foo")?;
// Already normalized.
assert!(iri.is_normalized());
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("scheme:relative/..//not-a-host")?;
// Default normalization algorithm assumes the path part to be NOT opaque.
assert!(!iri.is_normalized());
let normalized = iri.normalize().to_dedicated_string();
assert_eq!(normalized, "scheme:/.//not-a-host");
sourcepub fn is_normalized_rfc3986(&self) -> bool
pub fn is_normalized_rfc3986(&self) -> bool
Returns true
if the IRI is already normalized.
This returns the same result as
self.ensure_rfc3986_normalizable() && (self.normalize().to_string() == self)
,
does this more efficiently without heap allocation.
§Examples
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("HTTP://example.COM/foo/./bar/%2e%2e/../baz?query")?;
assert!(!iri.is_normalized_rfc3986());
let normalized = iri.normalize().to_dedicated_string();
assert_eq!(normalized, "http://example.com/baz?query");
assert!(normalized.is_normalized_rfc3986());
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("scheme:/.///foo")?;
// Not normalized in the sense of RFC 3986.
assert!(!iri.is_normalized_rfc3986());
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("scheme:relative/..//not-a-host")?;
// RFC 3986 normalization algorithm assumes the path part to be NOT opaque.
assert!(!iri.is_normalized_rfc3986());
let normalized = iri.normalize().to_dedicated_string();
assert_eq!(normalized, "scheme:/.//not-a-host");
Returns true
if the IRI is already normalized in the sense of
normalize_but_preserve_authorityless_relative_path
method.
This returns the same result as
self.normalize_but_preserve_authorityless_relative_path().to_string() == self
,
but does this more efficiently without heap allocation.
§Examples
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("HTTP://example.COM/foo/./bar/%2e%2e/../baz?query")?;
assert!(!iri.is_normalized_but_authorityless_relative_path_preserved());
let normalized = iri
.normalize_but_preserve_authorityless_relative_path()
.to_dedicated_string();
assert_eq!(normalized, "http://example.com/baz?query");
assert!(normalized.is_normalized());
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("scheme:/.///foo")?;
// Already normalized in the sense of
// `normalize_but_opaque_authorityless_relative_path()` method.
assert!(iri.is_normalized_but_authorityless_relative_path_preserved());
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("scheme:relative/..//not-a-host")?;
// Relative path is treated as opaque since the autority component is absent.
assert!(iri.is_normalized_but_authorityless_relative_path_preserved());
sourcepub fn normalize(&self) -> Normalized<'_, Self>
pub fn normalize(&self) -> Normalized<'_, Self>
Returns the normalized IRI.
§Examples
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("HTTP://example.COM/foo/./bar/%2e%2e/../baz?query")?;
let normalized = iri.normalize().to_dedicated_string();
assert_eq!(normalized, "http://example.com/baz?query");
Returns the normalized IRI, but preserving dot segments in relative path if the authority component is absent.
This normalization would be similar to that of WHATWG URL Standard while this implementation is not guaranteed to stricly follow the spec.
Note that this normalization algorithm is not compatible with RFC 3986 algorithm for some inputs.
Note that case normalization and percent-encoding normalization will still be applied to any path.
§Examples
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("HTTP://example.COM/foo/./bar/%2e%2e/../baz?query")?;
let normalized = iri
.normalize_but_preserve_authorityless_relative_path()
.to_dedicated_string();
assert_eq!(normalized, "http://example.com/baz?query");
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("scheme:relative/../f%6f%6f")?;
let normalized = iri
.normalize_but_preserve_authorityless_relative_path()
.to_dedicated_string();
assert_eq!(normalized, "scheme:relative/../foo");
// `.normalize()` would normalize this to `scheme:/foo`.
sourcepub fn mask_password(&self) -> PasswordMasked<'_, Self>
pub fn mask_password(&self) -> PasswordMasked<'_, Self>
Returns the proxy to the IRI with password masking feature.
§Examples
use iri_string::format::ToDedicatedString;
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("http://user:password@example.com/path?query")?;
let masked = iri.mask_password();
assert_eq!(masked.to_dedicated_string(), "http://user:@example.com/path?query");
assert_eq!(
masked.replace_password("${password}").to_string(),
"http://user:${password}@example.com/path?query"
);
sourcepub fn scheme_str(&self) -> &str
pub fn scheme_str(&self) -> &str
Returns the scheme.
The following colon is truncated.
§Examples
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("http://example.com/pathpath?queryquery")?;
assert_eq!(iri.scheme_str(), "http");
Returns the authority.
The leading //
is truncated.
§Examples
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("http://example.com/pathpath?queryquery")?;
assert_eq!(iri.authority_str(), Some("example.com"));
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("urn:uuid:10db315b-fcd1-4428-aca8-15babc9a2da2")?;
assert_eq!(iri.authority_str(), None);
sourcepub fn path_str(&self) -> &str
pub fn path_str(&self) -> &str
Returns the path.
§Examples
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("http://example.com/pathpath?queryquery")?;
assert_eq!(iri.path_str(), "/pathpath");
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("urn:uuid:10db315b-fcd1-4428-aca8-15babc9a2da2")?;
assert_eq!(iri.path_str(), "uuid:10db315b-fcd1-4428-aca8-15babc9a2da2");
sourcepub fn query(&self) -> Option<&RiQueryStr<S>>
pub fn query(&self) -> Option<&RiQueryStr<S>>
Returns the query.
The leading question mark (?
) is truncated.
§Examples
use iri_string::types::{IriAbsoluteStr, IriQueryStr};
let iri = IriAbsoluteStr::new("http://example.com/pathpath?queryquery")?;
let query = IriQueryStr::new("queryquery")?;
assert_eq!(iri.query(), Some(query));
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("urn:uuid:10db315b-fcd1-4428-aca8-15babc9a2da2")?;
assert_eq!(iri.query(), None);
sourcepub fn query_str(&self) -> Option<&str>
pub fn query_str(&self) -> Option<&str>
Returns the query in a raw string slice.
The leading question mark (?
) is truncated.
§Examples
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("http://example.com/pathpath?queryquery")?;
assert_eq!(iri.query_str(), Some("queryquery"));
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("urn:uuid:10db315b-fcd1-4428-aca8-15babc9a2da2")?;
assert_eq!(iri.query_str(), None);
Returns the authority components.
§Examples
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("http://user:pass@example.com:8080/pathpath?queryquery")?;
let authority = iri.authority_components()
.expect("authority is available");
assert_eq!(authority.userinfo(), Some("user:pass"));
assert_eq!(authority.host(), "example.com");
assert_eq!(authority.port(), Some("8080"));
use iri_string::types::IriAbsoluteStr;
let iri = IriAbsoluteStr::new("urn:uuid:10db315b-fcd1-4428-aca8-15babc9a2da2")?;
assert_eq!(iri.authority_str(), None);
sourcepub fn encode_to_uri(&self) -> MappedToUri<'_, Self>
pub fn encode_to_uri(&self) -> MappedToUri<'_, Self>
Percent-encodes the IRI into a valid URI that identifies the equivalent resource.
If you need more precise control over memory allocation and buffer
handling, use MappedToUri
type.
§Examples
use iri_string::format::ToDedicatedString;
use iri_string::types::{IriAbsoluteStr, UriAbsoluteString};
let iri = IriAbsoluteStr::new("http://example.com/?alpha=\u{03B1}")?;
// Type annotation here is not necessary.
let uri: UriAbsoluteString = iri.encode_to_uri().to_dedicated_string();
assert_eq!(uri, "http://example.com/?alpha=%CE%B1");
sourcepub fn as_uri(&self) -> Option<&UriAbsoluteStr>
pub fn as_uri(&self) -> Option<&UriAbsoluteStr>
Converts an IRI into a URI without modification, if possible.
This is semantically equivalent to
UriAbsoluteStr::new(self.as_str()).ok()
.
§Examples
use iri_string::types::{IriAbsoluteStr, UriAbsoluteStr};
let ascii_iri = IriAbsoluteStr::new("http://example.com/?alpha=%CE%B1")?;
assert_eq!(
ascii_iri.as_uri().map(AsRef::as_ref),
Some("http://example.com/?alpha=%CE%B1")
);
let nonascii_iri = IriAbsoluteStr::new("http://example.com/?alpha=\u{03B1}")?;
assert_eq!(nonascii_iri.as_uri(), None);
Trait Implementations§
source§impl<S: Spec> AsRef<RiAbsoluteStr<S>> for RiAbsoluteString<S>
impl<S: Spec> AsRef<RiAbsoluteStr<S>> for RiAbsoluteString<S>
source§fn as_ref(&self) -> &RiAbsoluteStr<S>
fn as_ref(&self) -> &RiAbsoluteStr<S>
source§impl<S: Spec> AsRef<RiReferenceStr<S>> for RiAbsoluteString<S>
impl<S: Spec> AsRef<RiReferenceStr<S>> for RiAbsoluteString<S>
source§fn as_ref(&self) -> &RiReferenceStr<S>
fn as_ref(&self) -> &RiReferenceStr<S>
source§impl<S: Spec> Borrow<RiAbsoluteStr<S>> for RiAbsoluteString<S>
impl<S: Spec> Borrow<RiAbsoluteStr<S>> for RiAbsoluteString<S>
source§fn borrow(&self) -> &RiAbsoluteStr<S>
fn borrow(&self) -> &RiAbsoluteStr<S>
source§impl<S: Spec> Clone for RiAbsoluteString<S>
impl<S: Spec> Clone for RiAbsoluteString<S>
source§impl<S: Spec> Debug for RiAbsoluteString<S>
impl<S: Spec> Debug for RiAbsoluteString<S>
source§impl<S: Spec> Deref for RiAbsoluteString<S>
impl<S: Spec> Deref for RiAbsoluteString<S>
§type Target = RiAbsoluteStr<S>
type Target = RiAbsoluteStr<S>
source§fn deref(&self) -> &RiAbsoluteStr<S>
fn deref(&self) -> &RiAbsoluteStr<S>
source§impl<'de, S: Spec> Deserialize<'de> for RiAbsoluteString<S>
Available on crate feature serde
only.
impl<'de, S: Spec> Deserialize<'de> for RiAbsoluteString<S>
serde
only.source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl<S: Spec> Display for RiAbsoluteString<S>
impl<S: Spec> Display for RiAbsoluteString<S>
source§impl<S: Spec> From<&Built<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<S>
impl<S: Spec> From<&Built<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<S>
source§fn from(builder: &Built<'_, RiAbsoluteStr<S>>) -> Self
fn from(builder: &Built<'_, RiAbsoluteStr<S>>) -> Self
source§impl<S: Spec> From<&Normalized<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<S>
impl<S: Spec> From<&Normalized<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<S>
source§fn from(v: &Normalized<'_, RiAbsoluteStr<S>>) -> Self
fn from(v: &Normalized<'_, RiAbsoluteStr<S>>) -> Self
source§impl<S: Spec> From<&RiAbsoluteStr<S>> for RiAbsoluteString<S>
impl<S: Spec> From<&RiAbsoluteStr<S>> for RiAbsoluteString<S>
source§fn from(s: &RiAbsoluteStr<S>) -> Self
fn from(s: &RiAbsoluteStr<S>) -> Self
source§impl<'a, S: Spec> From<&'a RiAbsoluteString<S>> for MappedToUri<'a, RiAbsoluteStr<S>>
impl<'a, S: Spec> From<&'a RiAbsoluteString<S>> for MappedToUri<'a, RiAbsoluteStr<S>>
source§fn from(iri: &'a RiAbsoluteString<S>) -> Self
fn from(iri: &'a RiAbsoluteString<S>) -> Self
source§impl<S: Spec> From<Built<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<S>
impl<S: Spec> From<Built<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<S>
source§fn from(builder: Built<'_, RiAbsoluteStr<S>>) -> Self
fn from(builder: Built<'_, RiAbsoluteStr<S>>) -> Self
source§impl<S: Spec> From<Normalized<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<S>
impl<S: Spec> From<Normalized<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<S>
source§fn from(v: Normalized<'_, RiAbsoluteStr<S>>) -> Self
fn from(v: Normalized<'_, RiAbsoluteStr<S>>) -> Self
source§impl<S: Spec> From<RiAbsoluteString<S>> for Box<RiAbsoluteStr<S>>
impl<S: Spec> From<RiAbsoluteString<S>> for Box<RiAbsoluteStr<S>>
source§fn from(s: RiAbsoluteString<S>) -> Box<RiAbsoluteStr<S>>
fn from(s: RiAbsoluteString<S>) -> Box<RiAbsoluteStr<S>>
source§impl<'a, S: Spec> From<RiAbsoluteString<S>> for Cow<'a, RiAbsoluteStr<S>>
impl<'a, S: Spec> From<RiAbsoluteString<S>> for Cow<'a, RiAbsoluteStr<S>>
source§fn from(s: RiAbsoluteString<S>) -> Cow<'a, RiAbsoluteStr<S>>
fn from(s: RiAbsoluteString<S>) -> Cow<'a, RiAbsoluteStr<S>>
source§impl<S: Spec> From<RiAbsoluteString<S>> for RiReferenceString<S>
impl<S: Spec> From<RiAbsoluteString<S>> for RiReferenceString<S>
source§fn from(s: RiAbsoluteString<S>) -> RiReferenceString<S>
fn from(s: RiAbsoluteString<S>) -> RiReferenceString<S>
source§impl<S: Spec> From<RiAbsoluteString<S>> for RiString<S>
impl<S: Spec> From<RiAbsoluteString<S>> for RiString<S>
source§fn from(s: RiAbsoluteString<S>) -> RiString<S>
fn from(s: RiAbsoluteString<S>) -> RiString<S>
source§impl<S: Spec> From<RiAbsoluteString<S>> for String
impl<S: Spec> From<RiAbsoluteString<S>> for String
source§fn from(s: RiAbsoluteString<S>) -> Self
fn from(s: RiAbsoluteString<S>) -> Self
source§impl From<RiAbsoluteString<UriSpec>> for IriAbsoluteString
impl From<RiAbsoluteString<UriSpec>> for IriAbsoluteString
source§fn from(uri: UriAbsoluteString) -> Self
fn from(uri: UriAbsoluteString) -> Self
source§impl<S: Spec> FromStr for RiAbsoluteString<S>
impl<S: Spec> FromStr for RiAbsoluteString<S>
source§impl<S: Spec> Hash for RiAbsoluteString<S>
impl<S: Spec> Hash for RiAbsoluteString<S>
source§impl<S: Spec> Ord for RiAbsoluteString<S>
impl<S: Spec> Ord for RiAbsoluteString<S>
source§impl<S: Spec, T: Spec> PartialEq<&RiAbsoluteStr<S>> for RiAbsoluteString<T>
impl<S: Spec, T: Spec> PartialEq<&RiAbsoluteStr<S>> for RiAbsoluteString<T>
source§fn eq(&self, o: &&RiAbsoluteStr<S>) -> bool
fn eq(&self, o: &&RiAbsoluteStr<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<&RiReferenceStr<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialEq<&RiReferenceStr<T>> for RiAbsoluteString<S>
source§fn eq(&self, o: &&RiReferenceStr<T>) -> bool
fn eq(&self, o: &&RiReferenceStr<T>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<&RiStr<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialEq<&RiStr<T>> for RiAbsoluteString<S>
source§impl<S: Spec, T: Spec> PartialEq<Cow<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<T>
impl<S: Spec, T: Spec> PartialEq<Cow<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<T>
source§impl<S: Spec, T: Spec> PartialEq<Cow<'_, RiReferenceStr<T>>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialEq<Cow<'_, RiReferenceStr<T>>> for RiAbsoluteString<S>
source§impl<S: Spec, T: Spec> PartialEq<Cow<'_, RiStr<T>>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialEq<Cow<'_, RiStr<T>>> for RiAbsoluteString<S>
source§impl<S: Spec> PartialEq<Cow<'_, str>> for RiAbsoluteString<S>
impl<S: Spec> PartialEq<Cow<'_, str>> for RiAbsoluteString<S>
source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteStr<S>> for RiAbsoluteString<T>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteStr<S>> for RiAbsoluteString<T>
source§fn eq(&self, o: &RiAbsoluteStr<S>) -> bool
fn eq(&self, o: &RiAbsoluteStr<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for &RiReferenceStr<T>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for &RiReferenceStr<T>
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for &RiStr<T>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for &RiStr<T>
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec> PartialEq<RiAbsoluteString<S>> for &str
impl<S: Spec> PartialEq<RiAbsoluteString<S>> for &str
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for Cow<'_, RiReferenceStr<T>>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for Cow<'_, RiReferenceStr<T>>
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for Cow<'_, RiStr<T>>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for Cow<'_, RiStr<T>>
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec> PartialEq<RiAbsoluteString<S>> for Cow<'_, str>
impl<S: Spec> PartialEq<RiAbsoluteString<S>> for Cow<'_, str>
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for RiReferenceStr<T>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for RiReferenceStr<T>
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for RiReferenceString<T>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for RiReferenceString<T>
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for RiStr<T>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for RiStr<T>
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for RiString<T>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<S>> for RiString<T>
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec> PartialEq<RiAbsoluteString<S>> for String
impl<S: Spec> PartialEq<RiAbsoluteString<S>> for String
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec> PartialEq<RiAbsoluteString<S>> for str
impl<S: Spec> PartialEq<RiAbsoluteString<S>> for str
source§fn eq(&self, o: &RiAbsoluteString<S>) -> bool
fn eq(&self, o: &RiAbsoluteString<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<T>> for &RiAbsoluteStr<S>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<T>> for &RiAbsoluteStr<S>
source§fn eq(&self, o: &RiAbsoluteString<T>) -> bool
fn eq(&self, o: &RiAbsoluteString<T>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<T>> for Cow<'_, RiAbsoluteStr<S>>
source§fn eq(&self, o: &RiAbsoluteString<T>) -> bool
fn eq(&self, o: &RiAbsoluteString<T>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<T>> for RiAbsoluteStr<S>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<T>> for RiAbsoluteStr<S>
source§fn eq(&self, o: &RiAbsoluteString<T>) -> bool
fn eq(&self, o: &RiAbsoluteString<T>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialEq<RiAbsoluteString<T>> for RiAbsoluteString<S>
source§fn eq(&self, other: &RiAbsoluteString<T>) -> bool
fn eq(&self, other: &RiAbsoluteString<T>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiReferenceStr<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialEq<RiReferenceStr<T>> for RiAbsoluteString<S>
source§fn eq(&self, o: &RiReferenceStr<T>) -> bool
fn eq(&self, o: &RiReferenceStr<T>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiReferenceString<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialEq<RiReferenceString<T>> for RiAbsoluteString<S>
source§fn eq(&self, o: &RiReferenceString<T>) -> bool
fn eq(&self, o: &RiReferenceString<T>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiStr<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialEq<RiStr<T>> for RiAbsoluteString<S>
source§impl<S: Spec, T: Spec> PartialEq<RiString<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialEq<RiString<T>> for RiAbsoluteString<S>
source§impl<S: Spec, T: Spec> PartialOrd<&RiAbsoluteStr<S>> for RiAbsoluteString<T>
impl<S: Spec, T: Spec> PartialOrd<&RiAbsoluteStr<S>> for RiAbsoluteString<T>
source§fn partial_cmp(&self, o: &&RiAbsoluteStr<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &&RiAbsoluteStr<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<&RiReferenceStr<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialOrd<&RiReferenceStr<T>> for RiAbsoluteString<S>
source§fn partial_cmp(&self, o: &&RiReferenceStr<T>) -> Option<Ordering>
fn partial_cmp(&self, o: &&RiReferenceStr<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<&RiStr<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialOrd<&RiStr<T>> for RiAbsoluteString<S>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec> PartialOrd<&str> for RiAbsoluteString<S>
impl<S: Spec> PartialOrd<&str> for RiAbsoluteString<S>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<Cow<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<T>
impl<S: Spec, T: Spec> PartialOrd<Cow<'_, RiAbsoluteStr<S>>> for RiAbsoluteString<T>
source§fn partial_cmp(&self, o: &Cow<'_, RiAbsoluteStr<S>>) -> Option<Ordering>
fn partial_cmp(&self, o: &Cow<'_, RiAbsoluteStr<S>>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<Cow<'_, RiReferenceStr<T>>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialOrd<Cow<'_, RiReferenceStr<T>>> for RiAbsoluteString<S>
source§fn partial_cmp(&self, o: &Cow<'_, RiReferenceStr<T>>) -> Option<Ordering>
fn partial_cmp(&self, o: &Cow<'_, RiReferenceStr<T>>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<Cow<'_, RiStr<T>>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialOrd<Cow<'_, RiStr<T>>> for RiAbsoluteString<S>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec> PartialOrd<Cow<'_, str>> for RiAbsoluteString<S>
impl<S: Spec> PartialOrd<Cow<'_, str>> for RiAbsoluteString<S>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteStr<S>> for RiAbsoluteString<T>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteStr<S>> for RiAbsoluteString<T>
source§fn partial_cmp(&self, o: &RiAbsoluteStr<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteStr<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for &RiReferenceStr<T>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for &RiReferenceStr<T>
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for &RiStr<T>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for &RiStr<T>
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec> PartialOrd<RiAbsoluteString<S>> for &str
impl<S: Spec> PartialOrd<RiAbsoluteString<S>> for &str
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for Cow<'_, RiReferenceStr<T>>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for Cow<'_, RiReferenceStr<T>>
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for Cow<'_, RiStr<T>>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for Cow<'_, RiStr<T>>
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec> PartialOrd<RiAbsoluteString<S>> for Cow<'_, str>
impl<S: Spec> PartialOrd<RiAbsoluteString<S>> for Cow<'_, str>
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for RiReferenceStr<T>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for RiReferenceStr<T>
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for RiReferenceString<T>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for RiReferenceString<T>
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for RiStr<T>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for RiStr<T>
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for RiString<T>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<S>> for RiString<T>
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec> PartialOrd<RiAbsoluteString<S>> for String
impl<S: Spec> PartialOrd<RiAbsoluteString<S>> for String
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec> PartialOrd<RiAbsoluteString<S>> for str
impl<S: Spec> PartialOrd<RiAbsoluteString<S>> for str
source§fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<S>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<T>> for &RiAbsoluteStr<S>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<T>> for &RiAbsoluteStr<S>
source§fn partial_cmp(&self, o: &RiAbsoluteString<T>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<T>> for Cow<'_, RiAbsoluteStr<S>>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<T>> for Cow<'_, RiAbsoluteStr<S>>
source§fn partial_cmp(&self, o: &RiAbsoluteString<T>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<T>> for RiAbsoluteStr<S>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<T>> for RiAbsoluteStr<S>
source§fn partial_cmp(&self, o: &RiAbsoluteString<T>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiAbsoluteString<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialOrd<RiAbsoluteString<T>> for RiAbsoluteString<S>
source§fn partial_cmp(&self, other: &RiAbsoluteString<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &RiAbsoluteString<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiReferenceStr<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialOrd<RiReferenceStr<T>> for RiAbsoluteString<S>
source§fn partial_cmp(&self, o: &RiReferenceStr<T>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiReferenceStr<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiReferenceString<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialOrd<RiReferenceString<T>> for RiAbsoluteString<S>
source§fn partial_cmp(&self, o: &RiReferenceString<T>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiReferenceString<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiStr<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialOrd<RiStr<T>> for RiAbsoluteString<S>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec, T: Spec> PartialOrd<RiString<T>> for RiAbsoluteString<S>
impl<S: Spec, T: Spec> PartialOrd<RiString<T>> for RiAbsoluteString<S>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec> PartialOrd<String> for RiAbsoluteString<S>
impl<S: Spec> PartialOrd<String> for RiAbsoluteString<S>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Spec> PartialOrd<str> for RiAbsoluteString<S>
impl<S: Spec> PartialOrd<str> for RiAbsoluteString<S>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<S> Serialize for RiAbsoluteString<S>where
S: Spec,
impl<S> Serialize for RiAbsoluteString<S>where
S: Spec,
source§impl<S: Spec> TryFrom<RiReferenceString<S>> for RiAbsoluteString<S>
impl<S: Spec> TryFrom<RiReferenceString<S>> for RiAbsoluteString<S>
§type Error = CreationError<RiReferenceString<S>>
type Error = CreationError<RiReferenceString<S>>
impl<S: Spec> Eq for RiAbsoluteString<S>
Auto Trait Implementations§
impl<S> Freeze for RiAbsoluteString<S>
impl<S> RefUnwindSafe for RiAbsoluteString<S>
impl<S> Send for RiAbsoluteString<S>
impl<S> Sync for RiAbsoluteString<S>
impl<S> Unpin for RiAbsoluteString<S>
impl<S> UnwindSafe for RiAbsoluteString<S>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
source§fn try_to_string(&self) -> Result<String, TryReserveError>
Available on crate feature alloc
only.
fn try_to_string(&self) -> Result<String, TryReserveError>
alloc
only.ToString::to_string
, but without panic on OOM.