Skip to content

ProtocolRequirement

tevelee edited this page Jul 25, 2026 · 2 revisions

ProtocolRequirement

A protocol requirement that is defined in some protocol.

public struct ProtocolRequirement: LayoutWrapper 

ABI Stability: Stable since the following

| macOS | iOS/tvOS | watchOS | Linux | Windows |
|-------|----------|---------|-------|---------|
| 10.14 | 12.2     | 5.2     | NA    | NA      |

Inheritance

LayoutWrapper

Properties

flags

The flags that describe this protocol requirement.

public var flags: Flags 

defaultImplementation

The optional default implementation emitted for this requirement.

public var defaultImplementation: UnsafeRawPointer? 

Its calling convention depends on flags; Echo exposes the address for inspection only, and clients must not invoke it.

Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally