pub struct Normalized<'a, T: ?Sized> { /* private fields */ }
Expand description

Normalized OR resolved IRI.

Resolved IRI can be represented by this type. In that case, the result might not be normalized. If you want the IRI resolution result to be normalized, use enable_normalization method.

Implementations

Enables the normalization.

This lets the normalizer apply the case normalization, percent-encoding normalization, and dot segments removal.

Enables the normalization that preserve relative path under some condition.

Note that this normalization algorithm is not compatible with RFC 3986 algorithm for some inputs.

See RiStr::normalize_but_preserve_authorityless_relative_path() for detail.

Returns Self with normalization enabled.

Returns Self with special normalization enabled.

Note that this normalization algorithm is not compatible with RFC 3986 algorithm for some inputs.

See RiStr::normalize_but_preserve_authorityless_relative_path() for detail.

Checks if the path is normalizable by RFC 3986 algorithm.

Returns Ok(()) when normalizable, returns Err(_) if not.

Trait Implementations

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.

Available on crate feature alloc only.

Conversion target type.

Available on crate feature alloc only.

Converts the value to the allocated string.

Available on crate feature alloc only.

Converts the value to the allocated string. Read more

Available on crate feature alloc only.

Conversion target type.

Available on crate feature alloc only.

Converts the value to the allocated string.

Available on crate feature alloc only.

Converts the value to the allocated 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.

Converts the given value to a String. Read more

Available on crate feature alloc only.

ToString::to_string, but without panic on OOM.

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.