Skip to content

ContextDescriptor

Azoy edited this page May 6, 2021 · 2 revisions

ContextDescriptor

A context descriptor describes any entity in Swift that contains other types or contexts.

public protocol ContextDescriptor 

ABI Stability: Stable since the following

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

Default Implementations

flags

The flags that describe this context including what kind it is, whether it's a generic context, and whether the context is unique along with other things.

public var flags: ContextDescriptorFlags 

parent

The parent context which this context descriptor resides in.

public var parent: ContextDescriptor? 

genericContext

The generic information about a context including the number of generic parameters, number of requirements, the parameters themselves, the requirements themselves, and much more.

public var genericContext: GenericContext? 

Requirements

ptr

Backing context descriptor pointer.

var ptr: UnsafeRawPointer 
Types
Protocols
Global Variables
Global Functions
Clone this wiki locally