Initializerswift-ip 0.3.0Firewalls->IP
init(integerLiteral:)
IP.ASN.swift:24init(integerLiteral: UInt32)
init(integerLiteral: UInt32)
s2IPAAO9FirewallsE3ASNV14integerLiteralAEs6UInt32V_tcfc
What are these?6MVV5
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(value: UInt32)
static func get(_ storage: UInt32) -> IP.ASN
var description: String { get }
let value: UInt32
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