Skip to content

TupleMetadata

tevelee edited this page Jul 21, 2026 · 1 revision

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 Typealiases
Global Variables
Global Functions

Clone this wiki locally