Struct uriparse::authority::RegisteredName[][src]

pub struct RegisteredName<'name>(_);

A host that is a registered name (i.e. not an IP literal).

The host is case-insensitive meaning that "example.com" and "ExAmPlE.CoM" refer to the same host. Furthermore, percent-encoding plays no role in equality checking meaning that "example.com" and "exampl%65.com" also refer to the same host. Both of these attributes are reflected in the equality and hash functions.

However, be aware that just because percent-encoding plays no role in equality checking does not mean that the host is normalized. The original host string will always be preserved as is with no normalization performed.

Methods

impl<'name> RegisteredName<'name>
[src]

Trait Implementations

impl<'name> Clone for RegisteredName<'name>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'name> Debug for RegisteredName<'name>
[src]

Formats the value using the given formatter. Read more

impl<'name> AsRef<[u8]> for RegisteredName<'name>
[src]

Important traits for &'a [u8]

Performs the conversion.

impl<'name> AsRef<str> for RegisteredName<'name>
[src]

Performs the conversion.

impl<'name> Display for RegisteredName<'name>
[src]

Formats the value using the given formatter. Read more

impl<'name> Eq for RegisteredName<'name>
[src]

impl<'name> From<RegisteredName<'name>> for String
[src]

Performs the conversion.

impl<'name> Hash for RegisteredName<'name>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'name> PartialEq for RegisteredName<'name>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'name> PartialEq<[u8]> for RegisteredName<'name>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'name> PartialEq<RegisteredName<'name>> for [u8]
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'name> PartialEq<&'a [u8]> for RegisteredName<'name>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'name> PartialEq<RegisteredName<'name>> for &'a [u8]
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'name> PartialEq<str> for RegisteredName<'name>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'name> PartialEq<RegisteredName<'name>> for str
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'name> PartialEq<&'a str> for RegisteredName<'name>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, 'name> PartialEq<RegisteredName<'name>> for &'a str
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'name> TryFrom<&'name [u8]> for RegisteredName<'name>
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<'name> TryFrom<&'name str> for RegisteredName<'name>
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

Auto Trait Implementations

impl<'name> Send for RegisteredName<'name>

impl<'name> Sync for RegisteredName<'name>