Struct iri_string::types::RiFragmentStr
source · pub struct RiFragmentStr<S> { /* private fields */ }
Expand description
A borrowed slice of an IRI fragment (i.e. after the first #
character).
This corresponds to ifragment
rule in RFC 3987 (and fragment
rule in RFC 3986).
The rule for ifragment
is *( ipchar / "/" / "?" )
.
§Valid values
This type can have an IRI fragment.
Note that the IRI foo://bar/baz#qux
has the fragment qux
, not #qux
.
assert!(IriFragmentStr::new("").is_ok());
assert!(IriFragmentStr::new("foo").is_ok());
assert!(IriFragmentStr::new("foo/bar").is_ok());
assert!(IriFragmentStr::new("/foo/bar").is_ok());
assert!(IriFragmentStr::new("//foo/bar").is_ok());
assert!(IriFragmentStr::new("https://user:pass@example.com:8080").is_ok());
assert!(IriFragmentStr::new("https://example.com/").is_ok());
Some characters and sequences cannot used in a fragment.
// `<` and `>` cannot directly appear in an IRI reference.
assert!(IriFragmentStr::new("<not allowed>").is_err());
// Broken percent encoding cannot appear in an IRI reference.
assert!(IriFragmentStr::new("%").is_err());
assert!(IriFragmentStr::new("%GG").is_err());
// Hash sign `#` cannot appear in an IRI fragment.
assert!(IriFragmentStr::new("#hash").is_err());
Implementations§
source§impl<S: Spec> RiFragmentStr<S>
impl<S: Spec> RiFragmentStr<S>
sourcepub unsafe fn new_unchecked(s: &str) -> &Self
pub unsafe fn new_unchecked(s: &str) -> &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.
source§impl<S: Spec> RiFragmentStr<S>
impl<S: Spec> RiFragmentStr<S>
sourcepub fn from_prefixed(s: &str) -> Result<&Self, Error>
pub fn from_prefixed(s: &str) -> Result<&Self, Error>
Creates a new &RiFragmentStr
from the fragment part prefixed by #
.
§Examples
assert!(IriFragmentStr::from_prefixed("#").is_ok());
assert!(IriFragmentStr::from_prefixed("#foo").is_ok());
assert!(IriFragmentStr::from_prefixed("#foo/bar").is_ok());
assert!(IriFragmentStr::from_prefixed("#/foo/bar").is_ok());
assert!(IriFragmentStr::from_prefixed("#//foo/bar").is_ok());
assert!(IriFragmentStr::from_prefixed("#https://user:pass@example.com:8080").is_ok());
assert!(IriFragmentStr::from_prefixed("#https://example.com/").is_ok());
// `<` and `>` cannot directly appear in an IRI.
assert!(IriFragmentStr::from_prefixed("#<not allowed>").is_err());
// Broken percent encoding cannot appear in an IRI.
assert!(IriFragmentStr::new("#%").is_err());
assert!(IriFragmentStr::new("#%GG").is_err());
// `#` prefix is expected.
assert!(IriFragmentStr::from_prefixed("").is_err());
assert!(IriFragmentStr::from_prefixed("foo").is_err());
// Hash sign `#` cannot appear in an IRI fragment.
assert!(IriFragmentStr::from_prefixed("##hash").is_err());
source§impl RiFragmentStr<IriSpec>
impl RiFragmentStr<IriSpec>
Conversion from an IRI into a URI.
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::{IriFragmentStr, UriFragmentString};
let iri = IriFragmentStr::new("alpha-is-\u{03B1}")?;
// Type annotation here is not necessary.
let uri: UriFragmentString = iri.encode_to_uri().to_dedicated_string();
assert_eq!(uri, "alpha-is-%CE%B1");
sourcepub fn as_uri(&self) -> Option<&UriFragmentStr>
pub fn as_uri(&self) -> Option<&UriFragmentStr>
Converts an IRI into a URI without modification, if possible.
This is semantically equivalent to
UriFragmentStr::new(self.as_str()).ok()
.
§Examples
use iri_string::types::{IriFragmentStr, UriFragmentStr};
let ascii_iri = IriFragmentStr::new("alpha-is-%CE%B1")?;
assert_eq!(
ascii_iri.as_uri().map(AsRef::as_ref),
Some("alpha-is-%CE%B1")
);
let nonascii_iri = IriFragmentStr::new("alpha-is-\u{03B1}")?;
assert_eq!(nonascii_iri.as_uri(), None);
Trait Implementations§
source§impl AsRef<RiFragmentStr<IriSpec>> for UriFragmentStr
impl AsRef<RiFragmentStr<IriSpec>> for UriFragmentStr
source§fn as_ref(&self) -> &IriFragmentStr
fn as_ref(&self) -> &IriFragmentStr
source§impl AsRef<RiFragmentStr<IriSpec>> for UriFragmentString
impl AsRef<RiFragmentStr<IriSpec>> for UriFragmentString
source§fn as_ref(&self) -> &IriFragmentStr
fn as_ref(&self) -> &IriFragmentStr
source§impl<S: Spec> AsRef<RiFragmentStr<S>> for RiFragmentStr<S>
impl<S: Spec> AsRef<RiFragmentStr<S>> for RiFragmentStr<S>
source§fn as_ref(&self) -> &RiFragmentStr<S>
fn as_ref(&self) -> &RiFragmentStr<S>
source§impl<S: Spec> AsRef<RiFragmentStr<S>> for RiFragmentString<S>
impl<S: Spec> AsRef<RiFragmentStr<S>> for RiFragmentString<S>
source§fn as_ref(&self) -> &RiFragmentStr<S>
fn as_ref(&self) -> &RiFragmentStr<S>
source§impl<S: Spec> Borrow<RiFragmentStr<S>> for RiFragmentString<S>
impl<S: Spec> Borrow<RiFragmentStr<S>> for RiFragmentString<S>
source§fn borrow(&self) -> &RiFragmentStr<S>
fn borrow(&self) -> &RiFragmentStr<S>
source§impl<S: Spec> Debug for RiFragmentStr<S>
impl<S: Spec> Debug for RiFragmentStr<S>
source§impl<'de: 'a, 'a, S: 'de + Spec> Deserialize<'de> for &'a RiFragmentStr<S>
Available on crate feature serde
only.
impl<'de: 'a, 'a, S: 'de + Spec> Deserialize<'de> for &'a RiFragmentStr<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 RiFragmentStr<S>
impl<S: Spec> Display for RiFragmentStr<S>
source§impl<'a, S: Spec> From<&'a RiFragmentStr<S>> for &'a str
impl<'a, S: Spec> From<&'a RiFragmentStr<S>> for &'a str
source§fn from(s: &'a RiFragmentStr<S>) -> &'a str
fn from(s: &'a RiFragmentStr<S>) -> &'a str
source§impl<S: Spec> From<&RiFragmentStr<S>> for Arc<RiFragmentStr<S>>
Available on crate feature alloc
only.
impl<S: Spec> From<&RiFragmentStr<S>> for Arc<RiFragmentStr<S>>
alloc
only.source§fn from(s: &RiFragmentStr<S>) -> Self
fn from(s: &RiFragmentStr<S>) -> Self
source§impl<S: Spec> From<&RiFragmentStr<S>> for Box<RiFragmentStr<S>>
Available on crate feature alloc
only.
impl<S: Spec> From<&RiFragmentStr<S>> for Box<RiFragmentStr<S>>
alloc
only.source§fn from(s: &RiFragmentStr<S>) -> Self
fn from(s: &RiFragmentStr<S>) -> Self
source§impl<'a, S: Spec> From<&'a RiFragmentStr<S>> for Cow<'a, RiFragmentStr<S>>
impl<'a, S: Spec> From<&'a RiFragmentStr<S>> for Cow<'a, RiFragmentStr<S>>
source§fn from(s: &'a RiFragmentStr<S>) -> Self
fn from(s: &'a RiFragmentStr<S>) -> Self
source§impl<'a, S: Spec> From<&'a RiFragmentStr<S>> for MappedToUri<'a, RiFragmentStr<S>>
impl<'a, S: Spec> From<&'a RiFragmentStr<S>> for MappedToUri<'a, RiFragmentStr<S>>
source§fn from(iri: &'a RiFragmentStr<S>) -> Self
fn from(iri: &'a RiFragmentStr<S>) -> Self
source§impl<S: Spec> From<&RiFragmentStr<S>> for Rc<RiFragmentStr<S>>
Available on crate feature alloc
only.
impl<S: Spec> From<&RiFragmentStr<S>> for Rc<RiFragmentStr<S>>
alloc
only.source§fn from(s: &RiFragmentStr<S>) -> Self
fn from(s: &RiFragmentStr<S>) -> Self
source§impl<S: Spec> From<&RiFragmentStr<S>> for RiFragmentString<S>
impl<S: Spec> From<&RiFragmentStr<S>> for RiFragmentString<S>
source§fn from(s: &RiFragmentStr<S>) -> Self
fn from(s: &RiFragmentStr<S>) -> Self
source§impl<S: Spec> From<RiFragmentString<S>> for Box<RiFragmentStr<S>>
impl<S: Spec> From<RiFragmentString<S>> for Box<RiFragmentStr<S>>
source§fn from(s: RiFragmentString<S>) -> Box<RiFragmentStr<S>>
fn from(s: RiFragmentString<S>) -> Box<RiFragmentStr<S>>
source§impl<S: Spec> Hash for RiFragmentStr<S>
impl<S: Spec> Hash for RiFragmentStr<S>
source§impl<S: Spec> Ord for RiFragmentStr<S>
impl<S: Spec> Ord for RiFragmentStr<S>
source§impl<S: Spec, T: Spec> PartialEq<&RiFragmentStr<S>> for Cow<'_, RiFragmentStr<T>>
impl<S: Spec, T: Spec> PartialEq<&RiFragmentStr<S>> for Cow<'_, RiFragmentStr<T>>
source§fn eq(&self, o: &&RiFragmentStr<S>) -> bool
fn eq(&self, o: &&RiFragmentStr<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec> PartialEq<&RiFragmentStr<S>> for Cow<'_, str>
impl<S: Spec> PartialEq<&RiFragmentStr<S>> for Cow<'_, str>
source§fn eq(&self, o: &&RiFragmentStr<S>) -> bool
fn eq(&self, o: &&RiFragmentStr<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<&RiFragmentStr<S>> for RiFragmentStr<T>
impl<S: Spec, T: Spec> PartialEq<&RiFragmentStr<S>> for RiFragmentStr<T>
source§fn eq(&self, o: &&RiFragmentStr<S>) -> bool
fn eq(&self, o: &&RiFragmentStr<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<&RiFragmentStr<S>> for RiFragmentString<T>
impl<S: Spec, T: Spec> PartialEq<&RiFragmentStr<S>> for RiFragmentString<T>
source§fn eq(&self, o: &&RiFragmentStr<S>) -> bool
fn eq(&self, o: &&RiFragmentStr<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec> PartialEq<&RiFragmentStr<S>> for str
impl<S: Spec> PartialEq<&RiFragmentStr<S>> for str
source§fn eq(&self, o: &&RiFragmentStr<S>) -> bool
fn eq(&self, o: &&RiFragmentStr<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<Cow<'_, RiFragmentStr<T>>> for &RiFragmentStr<S>
impl<S: Spec, T: Spec> PartialEq<Cow<'_, RiFragmentStr<T>>> for &RiFragmentStr<S>
source§impl<S: Spec> PartialEq<Cow<'_, str>> for &RiFragmentStr<S>
impl<S: Spec> PartialEq<Cow<'_, str>> for &RiFragmentStr<S>
source§impl<S: Spec> PartialEq<Cow<'_, str>> for RiFragmentStr<S>
impl<S: Spec> PartialEq<Cow<'_, str>> for RiFragmentStr<S>
source§impl<S: Spec> PartialEq<RiFragmentStr<S>> for &str
impl<S: Spec> PartialEq<RiFragmentStr<S>> for &str
source§fn eq(&self, o: &RiFragmentStr<S>) -> bool
fn eq(&self, o: &RiFragmentStr<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec> PartialEq<RiFragmentStr<S>> for Cow<'_, str>
impl<S: Spec> PartialEq<RiFragmentStr<S>> for Cow<'_, str>
source§fn eq(&self, o: &RiFragmentStr<S>) -> bool
fn eq(&self, o: &RiFragmentStr<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiFragmentStr<S>> for RiFragmentString<T>
impl<S: Spec, T: Spec> PartialEq<RiFragmentStr<S>> for RiFragmentString<T>
source§fn eq(&self, o: &RiFragmentStr<S>) -> bool
fn eq(&self, o: &RiFragmentStr<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec> PartialEq<RiFragmentStr<S>> for str
impl<S: Spec> PartialEq<RiFragmentStr<S>> for str
source§fn eq(&self, o: &RiFragmentStr<S>) -> bool
fn eq(&self, o: &RiFragmentStr<S>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiFragmentStr<T>> for &RiFragmentStr<S>
impl<S: Spec, T: Spec> PartialEq<RiFragmentStr<T>> for &RiFragmentStr<S>
source§fn eq(&self, o: &RiFragmentStr<T>) -> bool
fn eq(&self, o: &RiFragmentStr<T>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiFragmentString<T>> for &RiFragmentStr<S>
impl<S: Spec, T: Spec> PartialEq<RiFragmentString<T>> for &RiFragmentStr<S>
source§fn eq(&self, o: &RiFragmentString<T>) -> bool
fn eq(&self, o: &RiFragmentString<T>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec, T: Spec> PartialEq<RiFragmentString<T>> for RiFragmentStr<S>
impl<S: Spec, T: Spec> PartialEq<RiFragmentString<T>> for RiFragmentStr<S>
source§fn eq(&self, o: &RiFragmentString<T>) -> bool
fn eq(&self, o: &RiFragmentString<T>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<S: Spec> PartialEq for RiFragmentStr<S>
impl<S: Spec> PartialEq for RiFragmentStr<S>
source§impl<S: Spec, T: Spec> PartialOrd<&RiFragmentStr<S>> for Cow<'_, RiFragmentStr<T>>
impl<S: Spec, T: Spec> PartialOrd<&RiFragmentStr<S>> for Cow<'_, RiFragmentStr<T>>
source§fn partial_cmp(&self, o: &&RiFragmentStr<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &&RiFragmentStr<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<&RiFragmentStr<S>> for Cow<'_, str>
impl<S: Spec> PartialOrd<&RiFragmentStr<S>> for Cow<'_, str>
source§fn partial_cmp(&self, o: &&RiFragmentStr<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &&RiFragmentStr<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<&RiFragmentStr<S>> for RiFragmentStr<T>
impl<S: Spec, T: Spec> PartialOrd<&RiFragmentStr<S>> for RiFragmentStr<T>
source§fn partial_cmp(&self, o: &&RiFragmentStr<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &&RiFragmentStr<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<&RiFragmentStr<S>> for RiFragmentString<T>
impl<S: Spec, T: Spec> PartialOrd<&RiFragmentStr<S>> for RiFragmentString<T>
source§fn partial_cmp(&self, o: &&RiFragmentStr<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &&RiFragmentStr<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<&RiFragmentStr<S>> for str
impl<S: Spec> PartialOrd<&RiFragmentStr<S>> for str
source§fn partial_cmp(&self, o: &&RiFragmentStr<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &&RiFragmentStr<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<&str> for RiFragmentStr<S>
impl<S: Spec> PartialOrd<&str> for RiFragmentStr<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<'_, RiFragmentStr<T>>> for &RiFragmentStr<S>
impl<S: Spec, T: Spec> PartialOrd<Cow<'_, RiFragmentStr<T>>> for &RiFragmentStr<S>
source§fn partial_cmp(&self, o: &Cow<'_, RiFragmentStr<T>>) -> Option<Ordering>
fn partial_cmp(&self, o: &Cow<'_, RiFragmentStr<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> PartialOrd<Cow<'_, str>> for &RiFragmentStr<S>
impl<S: Spec> PartialOrd<Cow<'_, str>> for &RiFragmentStr<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 RiFragmentStr<S>
impl<S: Spec> PartialOrd<Cow<'_, str>> for RiFragmentStr<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<RiFragmentStr<S>> for &str
impl<S: Spec> PartialOrd<RiFragmentStr<S>> for &str
source§fn partial_cmp(&self, o: &RiFragmentStr<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiFragmentStr<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<RiFragmentStr<S>> for Cow<'_, str>
impl<S: Spec> PartialOrd<RiFragmentStr<S>> for Cow<'_, str>
source§fn partial_cmp(&self, o: &RiFragmentStr<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiFragmentStr<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<RiFragmentStr<S>> for RiFragmentString<T>
impl<S: Spec, T: Spec> PartialOrd<RiFragmentStr<S>> for RiFragmentString<T>
source§fn partial_cmp(&self, o: &RiFragmentStr<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiFragmentStr<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<RiFragmentStr<S>> for str
impl<S: Spec> PartialOrd<RiFragmentStr<S>> for str
source§fn partial_cmp(&self, o: &RiFragmentStr<S>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiFragmentStr<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<RiFragmentStr<T>> for &RiFragmentStr<S>
impl<S: Spec, T: Spec> PartialOrd<RiFragmentStr<T>> for &RiFragmentStr<S>
source§fn partial_cmp(&self, o: &RiFragmentStr<T>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiFragmentStr<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<RiFragmentString<T>> for &RiFragmentStr<S>
impl<S: Spec, T: Spec> PartialOrd<RiFragmentString<T>> for &RiFragmentStr<S>
source§fn partial_cmp(&self, o: &RiFragmentString<T>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiFragmentString<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<RiFragmentString<T>> for RiFragmentStr<S>
impl<S: Spec, T: Spec> PartialOrd<RiFragmentString<T>> for RiFragmentStr<S>
source§fn partial_cmp(&self, o: &RiFragmentString<T>) -> Option<Ordering>
fn partial_cmp(&self, o: &RiFragmentString<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> PartialOrd<str> for &RiFragmentStr<S>
impl<S: Spec> PartialOrd<str> for &RiFragmentStr<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 RiFragmentStr<S>
impl<S: Spec> PartialOrd<str> for RiFragmentStr<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 for RiFragmentStr<S>
impl<S: Spec> PartialOrd for RiFragmentStr<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 more