Skip to content

GenericRequirementDescriptor

Azoy edited this page Mar 17, 2021 · 2 revisions

GenericRequirementDescriptor

This descriptor describes any generic requirement in either a generic context or in a protocol's requirement signature.

public struct GenericRequirementDescriptor: 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 generic requirement.

var flags: Flags

paramMangledName

The mangled name for this requirement's parameter.

var paramMangledName: UnsafeRawPointer

mangledTypeName

If this requirement is a sameType or baseClass, this is the mangled name for the type that's being constrained.

var mangledTypeName: UnsafeRawPointer

`protocol`

If this requirement is a protocol, this is the protocol descriptor to said protocol being constrained.

var `protocol`: ProtocolDescriptor

layoutKind

If this requirement is some layout (currently can only be a class), this is the kind of layout that's being constrained.

var layoutKind: GenericRequirementLayoutKind
Types
Protocols
Global Variables
Global Functions

Clone this wiki locally