Instance Methodswift-bson 1.0.0BSONEncoding->BSONABI
encode(to:)
BSON.List (ext).swift:6func encode(to field: inout BSON.FieldEncoder) func encode(to field: inout BSON.FieldEncoder) s7BSONABI4BSONO4ListV12BSONEncodingE6encode2toyAC12FieldEncoderVz_tF What are these?3MA2Uimport BSONABIModels the BSON type system and the binary interface of the BSON serialization format.
import BSONEncodingImplements the BSON encoding system.
@frozen struct List@frozen enum BSONThe namespace for all BSON types.
@frozen struct FieldEncoderA type that can serialize any BSON container element.
init<Encodable>(elements: some Sequence<Encodable>) where Encodable : BSONEncodable init(with encode: (inout BSON.ListEncoder) throws -> ()) rethrows Creates an empty list, and initializes it with the given closure.