ip-cidr 0.1.0

IP CIDR utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//!IPv4 module

use core::net;

use crate::base;

pub(crate) const BITS_LEN: u8 = net::Ipv4Addr::BITS as u8;

///IPv4 CIDR
pub type Cidr = base::Cidr<net::Ipv4Addr>;

impl base::NetworkAddress for net::Ipv4Addr {
    const BITS_LEN: u8 = BITS_LEN;
}

crate::base::impl_base_methods!(net::Ipv4Addr where REPR=u32);