cidr/address.rs
use crate::{
Address,
IpCidr,
IpInet,
IpInetPair,
Ipv4Cidr,
Ipv4Inet,
Ipv4InetPair,
Ipv6Cidr,
Ipv6Inet,
Ipv6InetPair,
};
use std::net::{
IpAddr,
Ipv4Addr,
Ipv6Addr,
};
impl Address for Ipv4Addr {
type Cidr = Ipv4Cidr;
type Inet = Ipv4Inet;
type InetPair = Ipv4InetPair;
}
impl Address for Ipv6Addr {
type Cidr = Ipv6Cidr;
type Inet = Ipv6Inet;
type InetPair = Ipv6InetPair;
}
impl Address for IpAddr {
type Cidr = IpCidr;
type Inet = IpInet;
type InetPair = IpInetPair;
}