pub trait IpNet: ToNetwork<Self> + Debug + Ord + Copy where
    Self: Sized
{ type S: TraverseState<Net = Self>; type I: Iterator<Item = bool>; fn prefix_bits(&self) -> Self::I;
fn prefix_len(&self) -> u8;
fn with_new_prefix(&self, len: u8) -> Self; }
Expand description

An abstraction for IP networks.

Associated Types

Used for internal traversing.

I is an iterator to the prefix bits of the network.

Required methods

Returns the iterator to the prefix bits of the network.

Returns the prefix length.

Returns a copy of the network with the address truncated to the given length.

Implementations on Foreign Types

Implementors