Struct ipnetwork::Ipv6Network [] [src]

pub struct Ipv6Network {
    // some fields omitted
}

Methods

impl Ipv6Network
[src]

fn new(addr: Ipv6Addr, prefix: u8) -> Result<Ipv6NetworkIpNetworkError>

Constructs a new Ipv6Network from any Ipv6Addr and a prefix denoting the network size. If the prefix is larger than 128 this will return an IpNetworkError::InvalidPrefix.

fn from_cidr(cidr: &str) -> Result<Ipv6NetworkIpNetworkError>

fn ip(&self) -> Ipv6Addr

fn prefix(&self) -> u8

Trait Implementations

impl Eq for Ipv6Network
[src]

impl PartialEq for Ipv6Network
[src]

fn eq(&self, __arg_0: &Ipv6Network) -> bool

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

fn ne(&self, __arg_0: &Ipv6Network) -> bool

This method tests for !=.

impl Hash for Ipv6Network
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Copy for Ipv6Network
[src]

impl Clone for Ipv6Network
[src]

fn clone(&self) -> Ipv6Network

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Ipv6Network
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Ipv6Network
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.