Struct iprange::CompactIpv4 [] [src]

pub struct CompactIpv4(_);

A wrapper of u32 to represent an IPv4 address.

Methods

impl CompactIpv4
[src]

[src]

This method returns the successor of self.

If self does not have a successor, that is to say self is 255.255.255.255, then None is returned.

[src]

This method returns the predecessor of self.

If self does not have a predecessor, that is to say self is 0.0.0.0, then None is returned.

Trait Implementations

impl PartialEq for CompactIpv4
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for CompactIpv4
[src]

impl PartialOrd for CompactIpv4
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

impl Ord for CompactIpv4
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for CompactIpv4
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for CompactIpv4
[src]

impl BitAnd for CompactIpv4
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl BitOr for CompactIpv4
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl BitXor for CompactIpv4
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl Not for CompactIpv4
[src]

The resulting type after applying the ! operator.

[src]

Performs the unary ! operation.

impl BitAndAssign for CompactIpv4
[src]

[src]

Performs the &= operation.

impl BitOrAssign for CompactIpv4
[src]

[src]

Performs the |= operation.

impl BitXorAssign for CompactIpv4
[src]

[src]

Performs the ^= operation.

impl From<Ipv4Addr> for CompactIpv4
[src]

[src]

Performs the conversion.

impl From<u32> for CompactIpv4
[src]

[src]

Performs the conversion.

impl Into<u32> for CompactIpv4
[src]

[src]

Performs the conversion.

impl Debug for CompactIpv4
[src]

[src]

Formats the value using the given formatter.