Instance Propertyswift-ip 0.3.0IP
range
IP.Block.swift:53var range: ClosedRange<Base> { get }
var range: ClosedRange<Base> { get }
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 ClosedRange<Bound> where Bound : Comparable
An interval from a lower bound up to, and including, an upper bound.
protocol Address : Comparable, Hashable, LosslessStringConvertible, Sendable
Abstracts over IP.V4
and IP.V6
addresses.
init?(_ string: some StringProtocol)
Parses a CIDR block from a string in CIDR notation.
var description: String { get }
Formats the block as a string in CIDR notation.
func contains(_ ip: Base) -> Bool