Struct ipnetwork::Ipv6Network
[−]
[src]
pub struct Ipv6Network {
// some fields omitted
}Methods
impl Ipv6Network[src]
fn new(addr: Ipv6Addr, prefix: u8) -> Result<Ipv6Network, IpNetworkError>
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<Ipv6Network, IpNetworkError>
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: Hasher1.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