Formats the block as a string in CIDR notation.
var description: String { get }
s2IPAAO5BlockV11descriptionSSvp
9EOHI
where Base:IP.Address
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 Block<Base> where Base : IP.Address
A representation of a CIDR block.
@frozen enum IP
The namespace for IP types.
@frozen struct String
A Unicode string value that is a collection of characters.
protocol Address : Comparable, Hashable, LosslessStringConvertible, Sendable
Abstracts over IP.V4 and IP.V6 addresses.
IP.V4
IP.V6
init?(_ string: some StringProtocol)
Parses a CIDR block from a string in CIDR notation.
var range: ClosedRange<Base> { get }
func contains(_ ip: Base) -> Bool