|
@@ -80,7 +80,7 @@ impl fmt::Display for Address {
|
|
|
|
|
|
/// A specification of an IPv4 CIDR block, containing an address and a variable-length
|
|
/// A specification of an IPv4 CIDR block, containing an address and a variable-length
|
|
/// subnet masking prefix length.
|
|
/// subnet masking prefix length.
|
|
-#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Default)]
|
|
|
|
|
|
+#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
|
|
pub struct Cidr {
|
|
pub struct Cidr {
|
|
address: Address,
|
|
address: Address,
|
|
prefix_len: u8,
|
|
prefix_len: u8,
|