Skip to content

TupleMetadata

Azoy edited this page May 6, 2021 · 2 revisions

TupleMetadata

The metadata structure that represents a tuple type in Swift.

public struct TupleMetadata: Metadata, LayoutWrapper 

ABI Stability: Unstable across all platforms

| macOS | iOS/tvOS | watchOS | Linux | Windows |
|-------|----------|---------|-------|---------|
| NA    | NA       | NA      | NA    | NA      |

Inheritance

Metadata, LayoutWrapper

Properties

ptr

Backing tuple metadata pointer.

public let ptr: UnsafeRawPointer

numElements

The number of elements in this tuple.

public var numElements: Int 

labels

An array of labels for each element in this tuple.

public var labels: [String] 

elements

An array of elements that describe each tuple more in depth, including offset and type.

public var elements: [Element] 
Types
Protocols
Global Variables
Global Functions
Clone this wiki locally