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:

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Borrowed output types.

Owned output types.

Data processing error.

Processes the data, and writes it to the newly allocated buffer. Read more

Processes the data, and writes it to the given byte slice. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Borrowed output types.

Owned output types.

Data processing error.

Processes the data, and writes it to the newly allocated buffer. Read more

Processes the data, and writes it to the given byte slice. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Borrowed output types.

Owned output types.

Data processing error.

Processes the data, and writes it to the newly allocated buffer. Read more

Processes the data, and writes it to the given byte slice. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Borrowed output types.

Owned output types.

Data processing error.

Processes the data, and writes it to the newly allocated buffer. Read more

Processes the data, and writes it to the given byte slice. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Borrowed output types.

Owned output types.

Data processing error.

Processes the data, and writes it to the newly allocated buffer. Read more

Processes the data, and writes it to the given byte slice. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Borrowed output types.

Owned output types.

Data processing error.

Processes the data, and writes it to the newly allocated buffer. Read more

Processes the data, and writes it to the given byte slice. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Borrowed output types.

Owned output types.

Data processing error.

Processes the data, and writes it to the newly allocated buffer. Read more

Processes the data, and writes it to the given byte slice. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Borrowed output types.

Owned output types.

Data processing error.

Processes the data, and writes it to the newly allocated buffer. Read more

Processes the data, and writes it to the given byte slice. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Borrowed output types.

Owned output types.

Data processing error.

Processes the data, and writes it to the newly allocated buffer. Read more

Processes the data, and writes it to the given byte slice. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Borrowed output types.

Owned output types.

Data processing error.

Processes the data, and writes it to the newly allocated buffer. Read more

Processes the data, and writes it to the given byte slice. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Processes the data, and appends it to the buffer inside the provided String. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.