1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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;
}