ASN
An Autonomous System Number (ASN).
@frozen struct ASN
An Autonomous System Number (ASN).
@frozen struct ASN
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 enum IP
The namespace for IP types.
@frozen struct AS
Describes an Autonomous System (AS).
@frozen enum Claimant
@frozen struct Firewall
@frozen struct Table<Color> where Color : BSON.BinaryPackable
A data structure for efficient IP address lookups.
protocol BSONDecodable
A type that can be decoded from a BSON variant value backed by some type of storage not particular to the decoded type.
protocol BSONEncodable
A type that can be encoded to a BSON variant value.
protocol BinaryPackable<Storage>
protocol BitwiseCopyable
protocol Comparable : Equatable
A type that can be compared using the relational operators <
, <=
, >=
, and >
.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol ExpressibleByIntegerLiteral
A type that can be initialized with an integer literal.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol LosslessStringConvertible : CustomStringConvertible
A type that can be represented as a string in a lossless, unambiguous way.
protocol Sendable
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 }
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
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
static func ... (minimum: Self) -> PartialRangeFrom<Self>
Returns a partial range extending upward from a lower bound.
static func ... (maximum: Self) -> PartialRangeThrough<Self>
Returns a partial range up to, and including, its upper bound.
static func ... (minimum: Self, maximum: Self) -> ClosedRange<Self>
Returns a closed range that contains both of its bounds.
static func ..< (maximum: Self) -> PartialRangeUpTo<Self>
Returns a partial range up to, but not including, its upper bound.
static func ..< (minimum: Self, maximum: Self) -> Range<Self>
Returns a half-open range that contains its lower bound but not its upper bound.
static func <= (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
static func > (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
static func >= (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.