Structureswift-bson 0.3.1BSONDecoding->BSONABI
Iterator
BSON.DocumentDecoder.Iterator.swift:4@frozen struct Iterator
@frozen struct Iterator
s7BSONABI4BSONO12BSONDecodingE15DocumentDecoderV8IteratorV
What are these?4J9YM
where CodingKey:Hashable, CodingKey:RawRepresentable, CodingKey:Sendable, CodingKey.RawValue == String
import BSONDecoding
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen struct DocumentDecoder<CodingKey> where CodingKey : Hashable, CodingKey : RawRepresentable, CodingKey : Sendable, CodingKey.RawValue == String
A thin wrapper around a native Swift dictionary providing an efficient decoding interface for a Document
.
@frozen enum BSON
The namespace for all BSON types.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
@frozen struct String
A Unicode string value that is a collection of characters.
init(parsing bson: borrowing BSON.Document) throws
Attempts to create a decoder with typed coding keys from this document.
init(parsing bson: borrowing BSON.AnyValue) throws
Attempts to load a document decoder from the given variant.
subscript(key: CodingKey) -> BSON.FieldDecoder<CodingKey>? { get }
subscript(key: CodingKey) -> BSON.OptionalDecoder<CodingKey> { get }
func contains(_ key: CodingKey) -> Bool
func makeIterator() -> Iterator
consuming func single() throws -> BSON.FieldDecoder<CodingKey>
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol IteratorProtocol<Element>
A type that supplies the values of a sequence one at a time.
mutating func next() -> BSON.FieldDecoder<CodingKey>?