Protocolbson 8.1.2BSON
Primitive
Primitives.swift:3protocol Primitive : PrimitiveEncodable, Decodable, Encodable, Sendable
Browse conforming typesprotocol Primitive : PrimitiveEncodable, Decodable, Encodable, Sendable
import BSON
protocol PrimitiveEncodable
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
func encodePrimitive() throws -> Primitive
func equals(_ primitive: Primitive) -> Bool