Skip to content

ProtocolDescriptor

Azoy edited this page May 6, 2021 · 2 revisions

ProtocolDescriptor

A protocol descriptor that describes some protocol context.

public struct ProtocolDescriptor: ContextDescriptor, LayoutWrapper 

ABI Stability: Stable since the following

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

Inheritance

ContextDescriptor, LayoutWrapper

Properties

ptr

Backing context descriptor pointer.

public let ptr: UnsafeRawPointer

protocolFlags

The specific flags that describe a protocol descriptor.

public var protocolFlags: Flags 

name

The name of this protocol.

public var name: String 

numRequirementsInSignature

The number of generic requirements in this protocol's signature.

public var numRequirementsInSignature: Int 

numRequirements

The number of protocol requirements this protocol defines.

public var numRequirements: Int 

associatedTypeNames

A string of all associatedtype names.

public var associatedTypeNames: String 

requirementSignature

An array of all the generic requirements in this protocol's signature.

public var requirementSignature: [GenericRequirementDescriptor] 

requirements

An array of all the protocol requirements this protocol defines.

public var requirements: [ProtocolRequirement] 
Types
Protocols
Global Variables
Global Functions
Clone this wiki locally