Struct iri_string::convert::MappedToUri
source · [−]pub struct MappedToUri<'a, Src: ?Sized>(_);
Expand description
A resource identifier mapped to a URI of some kind.
Note that some methods are not directly implemented but provided from
ProcessAndWrite
trait.
Supported Src
type are:
- IRIs:
IriAbsoluteStr
(alias ofRiAbsoluteStr<IriSpec>
)IriReferenceStr
(alias ofRiReferenceStr<IriSpec>
)IriRelativeStr
(alias ofRiRelativeStr<IriSpec>
)IriStr
(alias ofRiStr<IriSpec>
)
- URIs:
UriAbsoluteStr
(alias ofRiAbsoluteStr<UriSpec>
)UriReferenceStr
(alias ofRiReferenceStr<UriSpec>
)UriRelativeStr
(alias ofRiRelativeStr<UriSpec>
)UriStr
(alias ofRiStr<UriSpec>
)
Examples
use iri_string::convert::MappedToUri;
use iri_string::types::{IriStr, UriStr};
let src = IriStr::new("http://example.com/?alpha=\u{03B1}")?;
// The type is `MappedToUri<IriStr>`, but you usually don't need to specify.
let mapped = MappedToUri::from(src).to_string();
assert_eq!(mapped, "http://example.com/?alpha=%CE%B1");
Trait Implementations
sourceimpl<'a, Src: Clone + ?Sized> Clone for MappedToUri<'a, Src>
impl<'a, Src: Clone + ?Sized> Clone for MappedToUri<'a, Src>
sourcefn clone(&self) -> MappedToUri<'a, Src>
fn clone(&self) -> MappedToUri<'a, Src>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, Src: Debug + ?Sized> Debug for MappedToUri<'a, Src>
impl<'a, Src: Debug + ?Sized> Debug for MappedToUri<'a, Src>
sourceimpl<'a> Display for MappedToUri<'a, IriAbsoluteStr>
impl<'a> Display for MappedToUri<'a, IriAbsoluteStr>
sourceimpl<'a> Display for MappedToUri<'a, UriAbsoluteStr>
impl<'a> Display for MappedToUri<'a, UriAbsoluteStr>
sourceimpl<'a> Display for MappedToUri<'a, IriReferenceStr>
impl<'a> Display for MappedToUri<'a, IriReferenceStr>
sourceimpl<'a> Display for MappedToUri<'a, UriReferenceStr>
impl<'a> Display for MappedToUri<'a, UriReferenceStr>
sourceimpl<'a> Display for MappedToUri<'a, IriRelativeStr>
impl<'a> Display for MappedToUri<'a, IriRelativeStr>
sourceimpl<'a> Display for MappedToUri<'a, UriRelativeStr>
impl<'a> Display for MappedToUri<'a, UriRelativeStr>
sourceimpl<'a> Display for MappedToUri<'a, IriStr>
impl<'a> Display for MappedToUri<'a, IriStr>
sourceimpl<'a> Display for MappedToUri<'a, UriStr>
impl<'a> Display for MappedToUri<'a, UriStr>
sourceimpl<'a> Display for MappedToUri<'a, IriFragmentStr>
impl<'a> Display for MappedToUri<'a, IriFragmentStr>
sourceimpl<'a> Display for MappedToUri<'a, UriFragmentStr>
impl<'a> Display for MappedToUri<'a, UriFragmentStr>
sourceimpl<'a> From<&'a RiAbsoluteStr<IriSpec>> for MappedToUri<'a, IriAbsoluteStr>
impl<'a> From<&'a RiAbsoluteStr<IriSpec>> for MappedToUri<'a, IriAbsoluteStr>
sourcefn from(iri: &'a IriAbsoluteStr) -> Self
fn from(iri: &'a IriAbsoluteStr) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiAbsoluteStr<UriSpec>> for MappedToUri<'a, UriAbsoluteStr>
impl<'a> From<&'a RiAbsoluteStr<UriSpec>> for MappedToUri<'a, UriAbsoluteStr>
sourcefn from(iri: &'a UriAbsoluteStr) -> Self
fn from(iri: &'a UriAbsoluteStr) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiAbsoluteString<IriSpec>> for MappedToUri<'a, IriAbsoluteStr>
impl<'a> From<&'a RiAbsoluteString<IriSpec>> for MappedToUri<'a, IriAbsoluteStr>
sourcefn from(iri: &'a IriAbsoluteString) -> Self
fn from(iri: &'a IriAbsoluteString) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiAbsoluteString<UriSpec>> for MappedToUri<'a, UriAbsoluteStr>
impl<'a> From<&'a RiAbsoluteString<UriSpec>> for MappedToUri<'a, UriAbsoluteStr>
sourcefn from(iri: &'a UriAbsoluteString) -> Self
fn from(iri: &'a UriAbsoluteString) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiFragmentStr<IriSpec>> for MappedToUri<'a, IriFragmentStr>
impl<'a> From<&'a RiFragmentStr<IriSpec>> for MappedToUri<'a, IriFragmentStr>
sourcefn from(iri: &'a IriFragmentStr) -> Self
fn from(iri: &'a IriFragmentStr) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiFragmentStr<UriSpec>> for MappedToUri<'a, UriFragmentStr>
impl<'a> From<&'a RiFragmentStr<UriSpec>> for MappedToUri<'a, UriFragmentStr>
sourcefn from(iri: &'a UriFragmentStr) -> Self
fn from(iri: &'a UriFragmentStr) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiFragmentString<IriSpec>> for MappedToUri<'a, IriFragmentStr>
impl<'a> From<&'a RiFragmentString<IriSpec>> for MappedToUri<'a, IriFragmentStr>
sourcefn from(iri: &'a IriFragmentString) -> Self
fn from(iri: &'a IriFragmentString) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiFragmentString<UriSpec>> for MappedToUri<'a, UriFragmentStr>
impl<'a> From<&'a RiFragmentString<UriSpec>> for MappedToUri<'a, UriFragmentStr>
sourcefn from(iri: &'a UriFragmentString) -> Self
fn from(iri: &'a UriFragmentString) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiReferenceStr<IriSpec>> for MappedToUri<'a, IriReferenceStr>
impl<'a> From<&'a RiReferenceStr<IriSpec>> for MappedToUri<'a, IriReferenceStr>
sourcefn from(iri: &'a IriReferenceStr) -> Self
fn from(iri: &'a IriReferenceStr) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiReferenceStr<UriSpec>> for MappedToUri<'a, UriReferenceStr>
impl<'a> From<&'a RiReferenceStr<UriSpec>> for MappedToUri<'a, UriReferenceStr>
sourcefn from(iri: &'a UriReferenceStr) -> Self
fn from(iri: &'a UriReferenceStr) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiReferenceString<IriSpec>> for MappedToUri<'a, IriReferenceStr>
impl<'a> From<&'a RiReferenceString<IriSpec>> for MappedToUri<'a, IriReferenceStr>
sourcefn from(iri: &'a IriReferenceString) -> Self
fn from(iri: &'a IriReferenceString) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiReferenceString<UriSpec>> for MappedToUri<'a, UriReferenceStr>
impl<'a> From<&'a RiReferenceString<UriSpec>> for MappedToUri<'a, UriReferenceStr>
sourcefn from(iri: &'a UriReferenceString) -> Self
fn from(iri: &'a UriReferenceString) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiRelativeStr<IriSpec>> for MappedToUri<'a, IriRelativeStr>
impl<'a> From<&'a RiRelativeStr<IriSpec>> for MappedToUri<'a, IriRelativeStr>
sourcefn from(iri: &'a IriRelativeStr) -> Self
fn from(iri: &'a IriRelativeStr) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiRelativeStr<UriSpec>> for MappedToUri<'a, UriRelativeStr>
impl<'a> From<&'a RiRelativeStr<UriSpec>> for MappedToUri<'a, UriRelativeStr>
sourcefn from(iri: &'a UriRelativeStr) -> Self
fn from(iri: &'a UriRelativeStr) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiRelativeString<IriSpec>> for MappedToUri<'a, IriRelativeStr>
impl<'a> From<&'a RiRelativeString<IriSpec>> for MappedToUri<'a, IriRelativeStr>
sourcefn from(iri: &'a IriRelativeString) -> Self
fn from(iri: &'a IriRelativeString) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RiRelativeString<UriSpec>> for MappedToUri<'a, UriRelativeStr>
impl<'a> From<&'a RiRelativeString<UriSpec>> for MappedToUri<'a, UriRelativeStr>
sourcefn from(iri: &'a UriRelativeString) -> Self
fn from(iri: &'a UriRelativeString) -> Self
Converts to this type from the input type.
sourceimpl<'a> ProcessAndWrite for MappedToUri<'a, IriAbsoluteStr>
impl<'a> ProcessAndWrite for MappedToUri<'a, IriAbsoluteStr>
type OutputBorrowed = RiAbsoluteStr<UriSpec>
type OutputBorrowed = RiAbsoluteStr<UriSpec>
Borrowed output types.
type OutputOwned = RiAbsoluteString<UriSpec>
type OutputOwned = RiAbsoluteString<UriSpec>
Owned output types.
type ProcessError = Infallible
type ProcessError = Infallible
Data processing error.
sourcefn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
fn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
Processes the data, and writes it to the newly allocated buffer. Read more
sourcefn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
Processes the data, and writes it to the given byte slice. Read more
sourcefn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
sourcefn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
fn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
sourceimpl<'a> ProcessAndWrite for MappedToUri<'a, UriAbsoluteStr>
impl<'a> ProcessAndWrite for MappedToUri<'a, UriAbsoluteStr>
type OutputBorrowed = RiAbsoluteStr<UriSpec>
type OutputBorrowed = RiAbsoluteStr<UriSpec>
Borrowed output types.
type OutputOwned = RiAbsoluteString<UriSpec>
type OutputOwned = RiAbsoluteString<UriSpec>
Owned output types.
type ProcessError = Infallible
type ProcessError = Infallible
Data processing error.
sourcefn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
fn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
Processes the data, and writes it to the newly allocated buffer. Read more
sourcefn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
Processes the data, and writes it to the given byte slice. Read more
sourcefn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
sourcefn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
fn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
sourceimpl<'a> ProcessAndWrite for MappedToUri<'a, IriReferenceStr>
impl<'a> ProcessAndWrite for MappedToUri<'a, IriReferenceStr>
type OutputBorrowed = RiReferenceStr<UriSpec>
type OutputBorrowed = RiReferenceStr<UriSpec>
Borrowed output types.
type OutputOwned = RiReferenceString<UriSpec>
type OutputOwned = RiReferenceString<UriSpec>
Owned output types.
type ProcessError = Infallible
type ProcessError = Infallible
Data processing error.
sourcefn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
fn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
Processes the data, and writes it to the newly allocated buffer. Read more
sourcefn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
Processes the data, and writes it to the given byte slice. Read more
sourcefn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
sourcefn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
fn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
sourceimpl<'a> ProcessAndWrite for MappedToUri<'a, UriReferenceStr>
impl<'a> ProcessAndWrite for MappedToUri<'a, UriReferenceStr>
type OutputBorrowed = RiReferenceStr<UriSpec>
type OutputBorrowed = RiReferenceStr<UriSpec>
Borrowed output types.
type OutputOwned = RiReferenceString<UriSpec>
type OutputOwned = RiReferenceString<UriSpec>
Owned output types.
type ProcessError = Infallible
type ProcessError = Infallible
Data processing error.
sourcefn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
fn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
Processes the data, and writes it to the newly allocated buffer. Read more
sourcefn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
Processes the data, and writes it to the given byte slice. Read more
sourcefn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
sourcefn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
fn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
sourceimpl<'a> ProcessAndWrite for MappedToUri<'a, IriRelativeStr>
impl<'a> ProcessAndWrite for MappedToUri<'a, IriRelativeStr>
type OutputBorrowed = RiRelativeStr<UriSpec>
type OutputBorrowed = RiRelativeStr<UriSpec>
Borrowed output types.
type OutputOwned = RiRelativeString<UriSpec>
type OutputOwned = RiRelativeString<UriSpec>
Owned output types.
type ProcessError = Infallible
type ProcessError = Infallible
Data processing error.
sourcefn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
fn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
Processes the data, and writes it to the newly allocated buffer. Read more
sourcefn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
Processes the data, and writes it to the given byte slice. Read more
sourcefn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
sourcefn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
fn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
sourceimpl<'a> ProcessAndWrite for MappedToUri<'a, UriRelativeStr>
impl<'a> ProcessAndWrite for MappedToUri<'a, UriRelativeStr>
type OutputBorrowed = RiRelativeStr<UriSpec>
type OutputBorrowed = RiRelativeStr<UriSpec>
Borrowed output types.
type OutputOwned = RiRelativeString<UriSpec>
type OutputOwned = RiRelativeString<UriSpec>
Owned output types.
type ProcessError = Infallible
type ProcessError = Infallible
Data processing error.
sourcefn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
fn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
Processes the data, and writes it to the newly allocated buffer. Read more
sourcefn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
Processes the data, and writes it to the given byte slice. Read more
sourcefn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
sourcefn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
fn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
sourceimpl<'a> ProcessAndWrite for MappedToUri<'a, IriStr>
impl<'a> ProcessAndWrite for MappedToUri<'a, IriStr>
type OutputBorrowed = RiStr<UriSpec>
type OutputBorrowed = RiStr<UriSpec>
Borrowed output types.
type OutputOwned = RiString<UriSpec>
type OutputOwned = RiString<UriSpec>
Owned output types.
type ProcessError = Infallible
type ProcessError = Infallible
Data processing error.
sourcefn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
fn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
Processes the data, and writes it to the newly allocated buffer. Read more
sourcefn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
Processes the data, and writes it to the given byte slice. Read more
sourcefn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
sourcefn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
fn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
sourceimpl<'a> ProcessAndWrite for MappedToUri<'a, UriStr>
impl<'a> ProcessAndWrite for MappedToUri<'a, UriStr>
type OutputBorrowed = RiStr<UriSpec>
type OutputBorrowed = RiStr<UriSpec>
Borrowed output types.
type OutputOwned = RiString<UriSpec>
type OutputOwned = RiString<UriSpec>
Owned output types.
type ProcessError = Infallible
type ProcessError = Infallible
Data processing error.
sourcefn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
fn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
Processes the data, and writes it to the newly allocated buffer. Read more
sourcefn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
Processes the data, and writes it to the given byte slice. Read more
sourcefn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
sourcefn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
fn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
sourceimpl<'a> ProcessAndWrite for MappedToUri<'a, IriFragmentStr>
impl<'a> ProcessAndWrite for MappedToUri<'a, IriFragmentStr>
type OutputBorrowed = RiFragmentStr<UriSpec>
type OutputBorrowed = RiFragmentStr<UriSpec>
Borrowed output types.
type OutputOwned = RiFragmentString<UriSpec>
type OutputOwned = RiFragmentString<UriSpec>
Owned output types.
type ProcessError = Infallible
type ProcessError = Infallible
Data processing error.
sourcefn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
fn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
Processes the data, and writes it to the newly allocated buffer. Read more
sourcefn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
Processes the data, and writes it to the given byte slice. Read more
sourcefn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
sourcefn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
fn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
sourceimpl<'a> ProcessAndWrite for MappedToUri<'a, UriFragmentStr>
impl<'a> ProcessAndWrite for MappedToUri<'a, UriFragmentStr>
type OutputBorrowed = RiFragmentStr<UriSpec>
type OutputBorrowed = RiFragmentStr<UriSpec>
Borrowed output types.
type OutputOwned = RiFragmentString<UriSpec>
type OutputOwned = RiFragmentString<UriSpec>
Owned output types.
type ProcessError = Infallible
type ProcessError = Infallible
Data processing error.
sourcefn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
fn allocate_and_write(
self
) -> Result<Self::OutputOwned, Error<Self::ProcessError>>
Processes the data, and writes it to the newly allocated buffer. Read more
sourcefn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn write_to_byte_slice(
self,
buf: &mut [u8]
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
Processes the data, and writes it to the given byte slice. Read more
sourcefn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
fn try_append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Error<Self::ProcessError>>
sourcefn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
fn append_to_std_string(
self,
buf: &mut String
) -> Result<&Self::OutputBorrowed, Self::ProcessError>
impl<'a, Src: Copy + ?Sized> Copy for MappedToUri<'a, Src>
Auto Trait Implementations
impl<'a, Src: ?Sized> RefUnwindSafe for MappedToUri<'a, Src> where
Src: RefUnwindSafe,
impl<'a, Src: ?Sized> Send for MappedToUri<'a, Src> where
Src: Sync,
impl<'a, Src: ?Sized> Sync for MappedToUri<'a, Src> where
Src: Sync,
impl<'a, Src: ?Sized> Unpin for MappedToUri<'a, Src>
impl<'a, Src: ?Sized> UnwindSafe for MappedToUri<'a, Src> where
Src: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more