Skip to content

ExtendedExistentialMetadata

tevelee edited this page Jul 25, 2026 · 1 revision

ExtendedExistentialMetadata

Metadata for a constrained existential such as any Collection<Int>.

public struct ExtendedExistentialMetadata: Metadata, LayoutWrapper,
  ExistentialTypeMetadata 

Extended existential metadata is runtime-private and may gain new shape records in future Swift releases. Echo exposes the stable leading shape and its documented trailing signature records without assuming an existential has the legacy protocol-composition layout.

Inheritance

ExistentialTypeMetadata, Metadata, LayoutWrapper

Properties

ptr

Backing extended existential metadata pointer.

public let ptr: UnsafeRawPointer

shape

The shape describing this existential's requirement and generalization signatures.

public var shape: ExtendedExistentialTypeShape 

generalizationArguments

The raw generalization arguments following the shape pointer.

public var generalizationArguments: [UnsafeRawPointer] 

Their interpretation follows the shape's generic argument layout and can include metadata, witness tables, packs, and values. They are intentionally exposed as raw words rather than being misidentified as metatypes.

Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally