Asn

typeAsn

An ASN: an Autonomous System Number.

An AS number can contain a number of 32-bits and is therefore similar to a u32. However, AS numbers cannot be manipulated with arithmetic operations. An AS number is constructed with the AS prefix followed by a number.

Can be used to store both 2-byte and 4-byte ASNs.

let a = AS0;
let b = AS1010;
let c = AS4294967295;
functionappears_on(asn: Asn, list: List[AsnRange]) bool

Check whether this ASN is in list.

functionfrom_u32(v: u32) Asn

Create an Asn from a u32.

functionto_string(self: Asn) String

Convert this value into a String.