asn 0.2.0

Newtype for Autonomous System Number (ASN)
Documentation
  • Coverage
  • 78.57%
    11 out of 14 items documented0 out of 4 items with examples
  • Size
  • Source code size: 11.65 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 273.71 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • robo9k/asn-rs
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • robo9k

Newtype for Autonomous System Number (ASN)

use asn::Asn;

let asn = Asn::new(0);
assert_eq!(asn, Asn::ZERO);

let asn = Asn::from_str("4294967295").expect("valid const last 32-bit ASN");
assert_eq!(asn, Asn::LAST4);