AnyExtensionField
Core protocols implemented by generated extensions.
@preconcurrency protocol AnyExtensionField : CustomDebugStringConvertible, Sendable
Browse conforming typesCore protocols implemented by generated extensions.
@preconcurrency protocol AnyExtensionField : CustomDebugStringConvertible, Sendable
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Sendable
var isInitialized: Bool { get }
Check if the field is initialized.
var protobufExtension: any AnyMessageExtension { get }
mutating func decodeExtensionField<T>(decoder: inout T) throws where T : Decoder
Merging field decoding
func hash(into hasher: inout Hasher)
func isEqual(other: any AnyExtensionField) -> Bool
func traverse<V>(visitor: inout V) throws where V : Visitor
Fields know their own type, so can dispatch to a visitor
var isInitialized: Bool { get }
@preconcurrency protocol ExtensionField : Hashable, AnyExtensionField
The regular ExtensionField type exposes the value directly.