Struct cidr::Ipv6Cidr [] [src]

pub struct Ipv6Cidr { /* fields omitted */ }

Cidr type representing an IPv6 network

Ordering based on lexicographic bitstring representation.

Trait Implementations

impl BitString for Ipv6Cidr
[src]

[src]

Get the ndxth bit. Read more

[src]

Set the ndxth bit to bit. Read more

[src]

Flips the ndxth bit. Read more

[src]

Current length of the bit string in bits.

[src]

Set current length to len. Read more

[src]

Append a bit. Read more

[src]

Create a new zero-length bit string. Read more

[src]

Length of the longest shared prefix of two bit strings.

[src]

Longest shared prefix of two bit strings.

[src]

Partial ordering on bit strings. Read more

[src]

Lexicographic ordering on bit strings. Read more

impl Cidr for Ipv6Cidr
[src]

Type for the underlying address (IpAddr, Ipv4Addr or Ipv6Addr). Read more

Corresponding Inet type (representing an address + a network containing it) Read more

[src]

Create new network from address and prefix length. If the network length exceeds the address length or the address is not the first address in the network ("host part not zero") an error is returned. Read more

[src]

Create a network containing a single address (network length = address length). Read more

[src]

first address in the network as plain address

[src]

first address in the network

[src]

last address in the network as plain address

[src]

last address in the network

[src]

length in bits of the shared prefix of the contained addresses

[src]

IP family of the contained address (Ipv4 or Ipv6).

[src]

network mask: an pseudo address which has the first network length bits set to 1 and the remaining to 0. Read more

[src]

check whether an address is contained in the network

[src]

Iterate over all addresses in the range. With IPv6 addresses this can produce really long iterations (up to 2128 addresses). Read more

impl Debug for Ipv6Cidr
[src]

[src]

Formats the value using the given formatter.

impl Display for Ipv6Cidr
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialOrd<Ipv6Cidr> for Ipv6Cidr
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

impl Ord for Ipv6Cidr
[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 FromStr for Ipv6Cidr
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl Serialize for Ipv6Cidr
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for Ipv6Cidr
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

impl Clone for Ipv6Cidr
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Ipv6Cidr
[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 Ipv6Cidr
[src]

impl Hash for Ipv6Cidr
[src]

[src]

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

1.3.0
[src]

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