Struct cidr::Ipv6Inet [] [src]

pub struct Ipv6Inet { /* fields omitted */ }

Inet type representing an IPv6 host within a network

Derived ordering, i.e. first sort by address, then by network length.

Trait Implementations

impl BitString for Ipv6Inet
[src]

Get the ndxth bit. Read more

Set the ndxth bit to bit. Read more

Flips the ndxth bit. Read more

Current length of the bit string in bits.

Set current length to len. Read more

Append a bit. Read more

Create a new zero-length bit string. Read more

Length of the longest shared prefix of two bit strings.

Longest shared prefix of two bit strings.

Partial ordering on bit strings. Read more

Lexicographic ordering on bit strings. Read more

impl Inet for Ipv6Inet
[src]

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

Corresponding Cidr type (representing only the network)

Create new host within a network from address and prefix length. If the network length exceeds the address length an error is returned. Read more

Create a network containing a single address as host and the network (network length = address length). Read more

increments host part (without changing the network part); returns true on wrap around

network (i.e. drops the host information)

the host

first address in the network as plain address

first address in the network

last address in the network as plain address

last address in the network

length in bits of the shared prefix of the contained addresses

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

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

check whether an address is contained in the network

impl Debug for Ipv6Inet
[src]

Formats the value using the given formatter.

impl Display for Ipv6Inet
[src]

Formats the value using the given formatter. Read more

impl FromStr for Ipv6Inet
[src]

The associated error which can be returned from parsing.

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

impl Clone for Ipv6Inet
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Ipv6Inet
[src]

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

This method tests for !=.

impl Eq for Ipv6Inet
[src]

impl PartialOrd for Ipv6Inet
[src]

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

impl Ord for Ipv6Inet
[src]

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

impl Hash for Ipv6Inet
[src]

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

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