[−][src]Struct iri_string::types::IriReferenceString
An owned string 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 IriString
and `RelativeIriString.
See documentation for IriReferenceStr
.
Methods
impl IriReferenceString
[src]
pub fn into_iri(self) -> Result<IriString, RelativeIriString>
[src]
Returns the string as IriString
, if it is valid as an IRI.
If it is not an IRI, then RelativeIriString
is returned as Err(_)
.
pub fn into_relative_iri(self) -> Result<RelativeIriString, IriString>
[src]
Returns the string as RelativeIriString
, if it is valid as an IRI.
If it is not an IRI, then IriString
is returned as Err(_)
.
pub fn set_fragment(&mut self, fragment: Option<&IriFragmentStr>)
[src]
Sets the fragment part to the given string.
Removes fragment part (and following #
character) if None
is given.
pub fn shrink_to_fit(&mut self)
[src]
Shrinks the capacity of the inner buffer to match its length.
Methods from Deref<Target = IriReferenceStr>
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<str> for IriReferenceString where
str: AsRef<str>,
str: AsRef<str>,
impl AsRef<IriReferenceStr> for IriReferenceString
fn as_ref(&self) -> &IriReferenceStr
impl From<AbsoluteIriString> for IriReferenceString
[src]
fn from(s: AbsoluteIriString) -> IriReferenceString
[src]
impl From<IriString> for IriReferenceString
[src]
fn from(s: IriString) -> IriReferenceString
[src]
impl From<IriReferenceString> for String
fn from(custom: IriReferenceString) -> Self
impl From<RelativeIriString> for IriReferenceString
[src]
fn from(s: RelativeIriString) -> IriReferenceString
[src]
impl Clone for IriReferenceString
[src]
fn clone(&self) -> IriReferenceString
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for IriReferenceString
[src]
impl Ord for IriReferenceString
[src]
fn cmp(&self, other: &IriReferenceString) -> 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<IriReferenceString> for AbsoluteIriStr
[src]
fn eq(&self, o: &IriReferenceString) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<AbsoluteIriStr> for IriReferenceString
[src]
fn eq(&self, o: &AbsoluteIriStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<IriReferenceString> for &'_ AbsoluteIriStr
[src]
fn eq(&self, o: &IriReferenceString) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ AbsoluteIriStr> for IriReferenceString
[src]
fn eq(&self, o: &&AbsoluteIriStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<IriReferenceString> for IriStr
[src]
fn eq(&self, o: &IriReferenceString) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<IriStr> for IriReferenceString
[src]
impl<'_> PartialEq<IriReferenceString> for &'_ IriStr
[src]
fn eq(&self, o: &IriReferenceString) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ IriStr> for IriReferenceString
[src]
impl PartialEq<IriReferenceString> for IriReferenceString
[src]
fn eq(&self, other: &IriReferenceString) -> bool
[src]
fn ne(&self, other: &IriReferenceString) -> bool
[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<Cow<'_, IriReferenceStr>> for IriReferenceString
fn eq(&self, other: &Cow<IriReferenceStr>) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<IriReferenceString> for Cow<'_, IriReferenceStr>
fn eq(&self, other: &IriReferenceString) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<str> for IriReferenceString
impl PartialEq<IriReferenceString> for str
fn eq(&self, other: &IriReferenceString) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ str> for IriReferenceString
impl<'_> PartialEq<IriReferenceString> for &'_ str
fn eq(&self, other: &IriReferenceString) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<Cow<'_, str>> for IriReferenceString
impl<'_> PartialEq<IriReferenceString> for Cow<'_, str>
fn eq(&self, other: &IriReferenceString) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<IriReferenceString> for RelativeIriStr
[src]
fn eq(&self, o: &IriReferenceString) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<RelativeIriStr> for IriReferenceString
[src]
fn eq(&self, o: &RelativeIriStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<IriReferenceString> for &'_ RelativeIriStr
[src]
fn eq(&self, o: &IriReferenceString) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> PartialEq<&'_ RelativeIriStr> for IriReferenceString
[src]
fn eq(&self, o: &&RelativeIriStr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<IriReferenceString> for AbsoluteIriStr
[src]
fn partial_cmp(&self, o: &IriReferenceString) -> 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 IriReferenceString
[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<IriReferenceString> for &'_ AbsoluteIriStr
[src]
fn partial_cmp(&self, o: &IriReferenceString) -> 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 IriReferenceString
[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<IriReferenceString> for IriStr
[src]
fn partial_cmp(&self, o: &IriReferenceString) -> 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 IriReferenceString
[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<IriReferenceString> for &'_ IriStr
[src]
fn partial_cmp(&self, o: &IriReferenceString) -> 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 IriReferenceString
[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<IriReferenceString> for IriReferenceString
[src]
fn partial_cmp(&self, other: &IriReferenceString) -> Option<Ordering>
[src]
fn lt(&self, other: &IriReferenceString) -> bool
[src]
fn le(&self, other: &IriReferenceString) -> bool
[src]
fn gt(&self, other: &IriReferenceString) -> bool
[src]
fn ge(&self, other: &IriReferenceString) -> bool
[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<Cow<'_, IriReferenceStr>> for IriReferenceString
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<IriReferenceString> for Cow<'_, 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<str> for IriReferenceString
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<IriReferenceString> for str
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<&'_ str> for IriReferenceString
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<IriReferenceString> for &'_ str
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<Cow<'_, str>> for IriReferenceString
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<IriReferenceString> for Cow<'_, str>
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<IriReferenceString> for RelativeIriStr
[src]
fn partial_cmp(&self, o: &IriReferenceString) -> 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 IriReferenceString
[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<IriReferenceString> for &'_ RelativeIriStr
[src]
fn partial_cmp(&self, o: &IriReferenceString) -> 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 IriReferenceString
[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 Display for IriReferenceString where
IriReferenceStr: Display,
IriReferenceStr: Display,
impl Debug for IriReferenceString
[src]
impl TryFrom<IriReferenceString> for AbsoluteIriString
[src]
type Error = IriCreationError<String>
The type returned in the event of a conversion error.
fn try_from(v: IriReferenceString) -> Result<Self, Self::Error>
[src]
impl TryFrom<IriReferenceString> for IriString
[src]
type Error = IriCreationError<String>
The type returned in the event of a conversion error.
fn try_from(v: IriReferenceString) -> Result<Self, Self::Error>
[src]
impl TryFrom<String> for IriReferenceString
type Error = IriCreationError<String>
The type returned in the event of a conversion error.
fn try_from(inner: String) -> Result<Self, Self::Error>
impl TryFrom<IriReferenceString> for RelativeIriString
[src]
type Error = IriCreationError<String>
The type returned in the event of a conversion error.
fn try_from(v: IriReferenceString) -> Result<Self, Self::Error>
[src]
impl FromStr for IriReferenceString
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
impl Deref for IriReferenceString
type Target = IriReferenceStr
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
impl Hash for IriReferenceString
[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 IriReferenceString
[src]
impl StructuralEq for IriReferenceString
[src]
impl Borrow<str> for IriReferenceString where
str: Borrow<str>,
str: Borrow<str>,
impl Borrow<IriReferenceStr> for IriReferenceString
fn borrow(&self) -> &IriReferenceStr
impl Serialize for IriReferenceString
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for IriReferenceString
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for IriReferenceString
impl Sync for IriReferenceString
impl Unpin for IriReferenceString
impl UnwindSafe for IriReferenceString
impl RefUnwindSafe for IriReferenceString
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,