Instance Method (Default implementation)swift-bson 0.3.1BSONEncoding
encode(to:)
BSONBinaryEncodable.swift:14func encode(to field: inout BSON.FieldEncoder)
func encode(to field: inout BSON.FieldEncoder)
s12BSONEncoding19BSONBinaryEncodablePAAE6encode2toy7BSONABI4BSONO12FieldEncoderVz_tF
What are these?10GC9
import BSONEncoding
protocol BSONBinaryEncodable : BSONEncodable
@frozen enum BSON
The namespace for all BSON types.
@frozen struct FieldEncoder
A type that can serialize any BSON container element.
func encode(to field: inout BSON.FieldEncoder)
func encode(to bson: inout BSON.BinaryEncoder)
Populates a binary array from this instance by encoding to the parameter, possibly updating the array’s binary subtype
as well.