asn

Crates.ioasn
lib.rsasn
version0.2.0
sourcesrc
created_at2024-10-28 20:24:30.525522
updated_at2024-10-28 21:05:52.15829
descriptionNewtype for Autonomous System Number (ASN)
homepage
repositoryhttps://github.com/robo9k/asn-rs
max_upload_size
id1426049
size11,998
serde-encrypted-value (github:palantir:serde-encrypted-value)

documentation

README

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);
Commit count: 25

cargo fmt