ValueConvertible

internal protocol ValueConvertible : BSON.Primitive
  • Converts the custom structure

    Declaration

    Swift

    public func convert<DT>(to type: DT.Type) -> DT.SupportedValue? where DT : DataType
  • The custom structure’s type identifier

    Declaration

    Swift

    public var typeIdentifier: Byte
  • The custom structure’s binary form

    Declaration

    Swift

    public func makeBinary() -> Bytes