Skip to content

TypeGenericContext

Azoy edited this page May 6, 2021 · 2 revisions

TypeGenericContext

A type generic context is an extension of a generic context for contexts that define some type in Swift. Currently that includes structs, classes, and enums. While protocols do define a type, they aren't considered type contexts.

public struct TypeGenericContext: 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] 

genericMetadataPattern

The instantiation pattern for this type generic context.

public var genericMetadataPattern: GenericMetadataPattern 

size

Number of bytes this type generic context is.

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