Struct iprange::Subnet
[−]
[src]
pub struct Subnet {
pub prefix: CompactIpv4,
pub mask: CompactIpv4,
}Fields
prefix: CompactIpv4
mask: CompactIpv4
Methods
impl Subnet[src]
fn contains(&self, addr: CompactIpv4) -> bool[src]
fn end(&self) -> CompactIpv4[src]
Trait Implementations
impl PartialEq for Subnet[src]
fn eq(&self, __arg_0: &Subnet) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Subnet) -> bool[src]
This method tests for !=.
impl Eq for Subnet[src]
impl Clone for Subnet[src]
fn clone(&self) -> Subnet[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more