Initializerswift 6.0.3Swift
init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
where Bound:Comparable, Bound:Decodable
import Swift
@frozen struct ClosedRange<Bound> where Bound : Comparable
An interval from a lower bound up to, and including, an upper bound.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
protocol Comparable : Equatable
A type that can be compared using the relational operators <
, <=
, >=
, and >
.
protocol Decodable
A type that can decode itself from an external representation.