init(bson:)
OrderedDictionary (ext).swift:12init(bson: BSON.Document) throws
init(bson: BSON.Document) throws
s18OrderedCollections0A10DictionaryV05BSON_aB07BSONABI0D0O3KeyVRsz12BSONDecoding13BSONDecodableR_rlE4bsonACyAIq_GAG8DocumentV_tKcfc
What are these?7WPRL
where Key == BSON.Key, Value:BSONDecodable
import BSON_OrderedCollections
import OrderedCollections
Swift Collections is an open-source package of data structure implementations for the Swift programming language.
@frozen struct OrderedDictionary<Key, Value> where Key : Hashable
An ordered collection of key-value pairs.
@frozen enum BSON
The namespace for all BSON types.
@frozen struct Document
The Document
type models the “universal” BSON DSL.
@frozen struct Key
A BSON field key. This type wraps a rawValue
that is guaranteed to never contain null bytes. (Null bytes in a BSON field key can be exploited to perform SQL injection.)
protocol BSONDecodable
A type that can be decoded from a BSON variant value backed by some type of storage not particular to the decoded type.
init(bson: BSON.AnyValue) throws