iri_string::format

Trait ToDedicatedString

source
pub trait ToDedicatedString {
    type Target;

    // Required method
    fn try_to_dedicated_string(&self) -> Result<Self::Target, TryReserveError>;

    // Provided method
    fn to_dedicated_string(&self) -> Self::Target { ... }
}
Available on crate feature alloc only.
Expand description

A trait for types that can be converted to a dedicated allocated string types.

Required Associated Types§

source

type Target

Conversion target type.

Required Methods§

source

fn try_to_dedicated_string(&self) -> Result<Self::Target, TryReserveError>

Converts the value to the allocated string.

Provided Methods§

source

fn to_dedicated_string(&self) -> Self::Target

Converts the value to the allocated string.

§Panics

Panics if memory allocation error occured.

Implementors§

source§

impl<S: Spec> ToDedicatedString for Built<'_, RiAbsoluteStr<S>>

source§

impl<S: Spec> ToDedicatedString for Built<'_, RiReferenceStr<S>>

source§

impl<S: Spec> ToDedicatedString for Built<'_, RiRelativeStr<S>>

source§

impl<S: Spec> ToDedicatedString for Built<'_, RiStr<S>>

source§

impl<S: Spec> ToDedicatedString for MappedToUri<'_, RiAbsoluteStr<S>>

source§

impl<S: Spec> ToDedicatedString for MappedToUri<'_, RiFragmentStr<S>>

source§

impl<S: Spec> ToDedicatedString for MappedToUri<'_, RiQueryStr<S>>

source§

impl<S: Spec> ToDedicatedString for MappedToUri<'_, RiReferenceStr<S>>

source§

impl<S: Spec> ToDedicatedString for MappedToUri<'_, RiRelativeStr<S>>

source§

impl<S: Spec> ToDedicatedString for MappedToUri<'_, RiStr<S>>

source§

impl<S: Spec> ToDedicatedString for PasswordMasked<'_, RiAbsoluteStr<S>>

source§

impl<S: Spec> ToDedicatedString for PasswordMasked<'_, RiReferenceStr<S>>

source§

impl<S: Spec> ToDedicatedString for PasswordMasked<'_, RiRelativeStr<S>>

source§

impl<S: Spec> ToDedicatedString for PasswordMasked<'_, RiStr<S>>

source§

impl<S: Spec> ToDedicatedString for Normalized<'_, RiAbsoluteStr<S>>

source§

impl<S: Spec> ToDedicatedString for Normalized<'_, RiStr<S>>