1
0
mirror of https://github.com/jht5945/rust_util.git synced 2025-12-27 15:40:03 +08:00

feat: ip address support ord, eq

This commit is contained in:
2021-02-28 10:49:53 +08:00
parent 4b39ac48fd
commit 4d6b7b3180
3 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ use crate::XResult;
const DEFAULT_LISTEN_ADDR: [u8; 4] = [127, 0, 0, 1];
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialOrd, PartialEq, Ord, Eq)]
pub enum IpAddress {
Ipv4([u8; 4]),
}