[−][src]Trait iprange::IpNet
An abstraction for IP networks.
Associated Types
type S: TraverseState<Net = Self>
Used for internal traversing.
type I: Iterator<Item = bool>
I is an iterator to the prefix bits of the network.
Required methods
fn prefix_bits(&self) -> Self::I
Returns the iterator to the prefix bits of the network.
fn prefix_len(&self) -> u8
Returns the prefix length.
fn with_new_prefix(&self, len: u8) -> Self
Returns a copy of the network with the address truncated to the given length.