Static Methodswift-protobuf 1.29.0SwiftProtobuf
visitSingular(value:fieldNumber:with:)
FieldTypes.swift:115static func visitSingular<V>(value: BaseType, fieldNumber: Int, with visitor: inout V) throws where V : Visitor
static func visitSingular<V>(value: BaseType, fieldNumber: Int, with visitor: inout V) throws where V : Visitor
s13SwiftProtobuf0B6DoubleV13visitSingular5value11fieldNumber4withySd_SixztKAA7VisitorRzlFZ
What are these?6XMJL
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct ProtobufDouble
Double
typealias BaseType = Double
@frozen struct Int
A signed integer value type.
protocol Visitor
This is the key interface used by the generated traverse()
methods used for serialization. It is implemented by each serialization protocol: Protobuf Binary, Protobuf Text, JSON, and the Hash encoder.
static var proto3DefaultValue: Double { get }
static func decodeRepeated<D>(value: inout [BaseType], from decoder: inout D) throws where D : Decoder
static func decodeSingular<D>(value: inout BaseType?, from decoder: inout D) throws where D : Decoder
static func visitPacked<V>(value: [BaseType], fieldNumber: Int, with visitor: inout V) throws where V : Visitor
static func visitRepeated<V>(value: [BaseType], fieldNumber: Int, with visitor: inout V) throws where V : Visitor