Struct ipaddr::Ipv6Network [−][src]
pub struct Ipv6Network(_, _);
Methods
impl Ipv6Network
[src]
impl Ipv6Network
pub fn new(ip: Ipv6Address, mask: Ipv6Mask) -> Self
[src]
pub fn new(ip: Ipv6Address, mask: Ipv6Mask) -> Self
Create a new network address from the given address and mask.
pub fn host(&self) -> Ipv6Address
[src]
pub fn host(&self) -> Ipv6Address
pub fn network(&self) -> Ipv6Address
[src]
pub fn network(&self) -> Ipv6Address
pub fn host_mask(&self) -> Ipv6Address
[src]
pub fn host_mask(&self) -> Ipv6Address
pub fn broadcast(&self) -> Ipv6Address
[src]
pub fn broadcast(&self) -> Ipv6Address
pub fn len(&self) -> u128
[src]
pub fn len(&self) -> u128
pub fn mask(&self) -> Ipv6Mask
[src]
pub fn mask(&self) -> Ipv6Mask
pub fn ip(&self) -> &Ipv6Address
[src]
pub fn ip(&self) -> &Ipv6Address
pub fn ip_mut(&mut self) -> &mut Ipv6Address
[src]
pub fn ip_mut(&mut self) -> &mut Ipv6Address
pub fn mask_mut(&mut self) -> &mut Ipv6Mask
[src]
pub fn mask_mut(&mut self) -> &mut Ipv6Mask
pub fn to_string(&mut self) -> String
[src]
pub fn to_string(&mut self) -> String
Trait Implementations
impl Copy for Ipv6Network
[src]
impl Copy for Ipv6Network
impl Clone for Ipv6Network
[src]
impl Clone for Ipv6Network
fn clone(&self) -> Ipv6Network
[src]
fn clone(&self) -> Ipv6Network
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for Ipv6Network
[src]
impl Eq for Ipv6Network
impl PartialEq for Ipv6Network
[src]
impl PartialEq for Ipv6Network
fn eq(&self, other: &Ipv6Network) -> bool
[src]
fn eq(&self, other: &Ipv6Network) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Ipv6Network) -> bool
[src]
fn ne(&self, other: &Ipv6Network) -> bool
This method tests for !=
.
impl Hash for Ipv6Network
[src]
impl Hash for Ipv6Network
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for Ipv6Network
[src]
impl Display for Ipv6Network
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for Ipv6Network
[src]
impl Debug for Ipv6Network
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for Ipv6Network
[src]
impl FromStr for Ipv6Network
Auto Trait Implementations
impl Send for Ipv6Network
impl Send for Ipv6Network
impl Sync for Ipv6Network
impl Sync for Ipv6Network