hardware-address 0.3.0

IEEE 802 MAC-48, EUI-48, EUI-64, or a 20-octet IP over InfiniBand link-layer addresses and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use hardware_address::addr_ty;

addr_ty!(
  /// Represents an address.
  MyAddr[12]
);

fn main() {
  let addr = MyAddr::from_raw([
    0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b,
  ]);
  println!("{:?}", addr);
}