Skip to content

GenericContext

Azoy edited this page May 6, 2021 · 2 revisions

GenericContext

A generic context describes the generic information about some generic context.

public struct GenericContext: LayoutWrapper 

ABI Stability: Stable since the following

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

Inheritance

LayoutWrapper

Properties

numParams

The number of generic parameters this context has.

public var numParams: Int 

numRequirements

The number of generic requirements this context has.

public var numRequirements: Int 

numKeyArguments

The number of "key" generic parameters this context has.

public var numKeyArguments: Int 

numExtraArguments

The number of "extra" generic parameters this context has.

public var numExtraArguments: Int 

parameters

An array of all the generic parameters this context has.

public var parameters: [GenericParameterDescriptor] 

requirements

An array of all the generic requirements this context has.

public var requirements: [GenericRequirementDescriptor] 

size

Number of bytes this generic context is.

public var size: Int 
Types
Protocols
Global Variables
Global Functions
Clone this wiki locally