logo
#[repr(transparent)]
pub struct ArchivedIpv4Addr { /* private fields */ }
Expand description

An archived Ipv4Addr.

Implementations

Returns an Ipv4Addr with the same value.

Returns true if this is a broadcast address (255.255.255.255).

See Ipv4Addr::is_broadcast() for more details.

Returns true if this address is in a range designated for documentation.

See Ipv4Addr::is_documentation() for more details.

Returns true if the address is link-local (169.254.0.0/16).

See Ipv4Addr::is_link_local() for more details.

Returns true if this is a loopback address (127.0.0.0/8).

See Ipv4Addr::is_loopback() for more details.

Returns true if this is a multicast address (224.0.0.0/4).

See Ipv4Addr::is_multicast() for more details.

Returns true if this is a private address.

See Ipv4Addr::is_private() for more details.

Returns true for the special ‘unspecified’ address (0.0.0.0).

See Ipv4Addr::is_unspecified() for more details.

Converts this address to an IPv4-compatible IPv6 address.

See Ipv4Addr::to_ipv6_compatible() for more details.

Converts this address to an IPv4-mapped IPv6 address.

See Ipv4Addr::to_ipv6_mapped() for more details.

Returns the four eight-bit integers that make up this address.

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

Returns the “default value” for a type. Read more

Deserializes using the given deserializer

Feeds this value into the given Hasher. Read more

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

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

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 type for metadata in pointers and references to Self.

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

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.