ClosedRange (ext)
You’re viewing third-party extensions to ClosedRange, a struct from the Swift standard library.
You can also read the documentation forClosedRange itself.
extension ClosedRangeYou’re viewing third-party extensions to ClosedRange, a struct from the Swift standard library.
You can also read the documentation forClosedRange itself.
extension ClosedRange@frozen struct ClosedRange<Bound> where Bound : ComparableAn interval from a lower bound up to, and including, an upper bound.
import BSONArraysImplements the packed binary array system.
protocol BinaryPackable<Storage>protocol Comparable : EquatableA type that can be compared using the relational operators <, <=, >=, and >.
static func get(_ storage: Storage) -> ClosedRange<Bound> consuming func set() -> Storage typealias Storage = (Bound.Storage, Bound.Storage)import BSONAn umbrella module providing a BSON parser, encoder, and decoder.
protocol BSONDecodableA type that can be decoded from a BSON variant value backed by some type of storage not particular to the decoded type.
protocol BSONDocumentDecodable<CodingKey> : BSONDecodableA type that can be decoded from a BSON dictionary-decoder.
init(bson: BSON.DocumentDecoder<CodingKey>) throws If the range is invalid, the initializer throws an error.
init(bson: BSON.AnyValue) throws init(bson: BSON.Document) throws protocol BSONEncodableA type that can be encoded to a BSON variant value.
protocol BSONDocumentEncodable<CodingKey> : BSONEncodableA type that can be encoded to a BSON document. This protocol exists to allow types that define CodingKey to encode themselves using a BSON.DocumentEncoder.
func encode(to bson: inout BSON.DocumentEncoder<CodingKey>) func encode(to field: inout BSON.FieldEncoder) @frozen enum CodingKeyThe default BSON representation of a ClosedRange, which is a BSON document keyed by L (lowerBound) and U (upperBound).