Structureswift-protobuf 1.29.0SwiftProtobuf
OptionalEnumExtensionField
Enum extensions
struct OptionalEnumExtensionField<E> where E : Enum, E.RawValue == Int
Enum extensions
struct OptionalEnumExtensionField<E> where E : Enum, E.RawValue == Int
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
@preconcurrency protocol Enum : Hashable, RawRepresentable, Sendable
Generated enum types conform to this protocol.
associatedtype RawValue
The raw type that can be used to represent all values of the conforming type.
@frozen struct Int
A signed integer value type.
@preconcurrency protocol AnyExtensionField : CustomDebugStringConvertible, Sendable
Core protocols implemented by generated extensions.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
@preconcurrency protocol ExtensionField : Hashable, AnyExtensionField
The regular ExtensionField type exposes the value directly.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init?<D>(protobufExtension: any AnyMessageExtension, decoder: inout D) throws where D : Decoder
init(protobufExtension: any AnyMessageExtension, value: ValueType)
var debugDescription: String { get }
var protobufExtension: any AnyMessageExtension
var value: ValueType
static func == (lhs: OptionalEnumExtensionField, rhs: OptionalEnumExtensionField) -> Bool
mutating func decodeExtensionField<D>(decoder: inout D) throws where D : Decoder
func hash(into hasher: inout Hasher)
func isEqual(other: any AnyExtensionField) -> Bool
func traverse<V>(visitor: inout V) throws where V : Visitor
typealias BaseType = E
typealias ValueType = E
var isInitialized: Bool { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.