Instance Propertyswift-ip 0.3.0Firewalls->IP
value
IP.ASN.swift:12let value: UInt32
let value: UInt32
import Firewalls
import IP
This Foundation-free module provides tools for parsing and formatting IP addresses, and data structures for performing efficient IP address lookups.
@frozen struct ASN
An Autonomous System Number (ASN).
@frozen enum IP
The namespace for IP types.
@frozen struct UInt32
A 32-bit unsigned integer value type.
init?(_ string: some StringProtocol)
init(bson: BSON.AnyValue) throws
init(integerLiteral: UInt32)
init(value: UInt32)
static func get(_ storage: UInt32) -> IP.ASN
var description: String { get }
static func < (a: `Self`, b: `Self`) -> Bool
func encode(to field: inout BSON.FieldEncoder)
Encodes the ASN as a signed BSON Int32
, by mapping the range of the UInt32
value to the range of an Int32
.
consuming func set() -> UInt32