Module cidr_utils::cidr

source ·
Expand description

This module provides data structures for IPv4 CIDRs and IPv6 CIDRs.

Structs

Enums

Traits

  • The type which can be taken as an IPv4 address. An u32 value represents an IPv4 byte array ([u8; 4]) in big-endian (BE) order.
  • The type which can be taken as an IPv6 address. An u128 value represents an IPv6 byte array ([u8; 16]) in big-endian (BE) order.