Skip to content

EnumMetadata

tevelee edited this page Jul 25, 2026 · 2 revisions

EnumMetadata

The metadata structure that represents an enum type in Swift.

public struct EnumMetadata: TypeMetadata, LayoutWrapper 

ABI Stability: Stable since the following

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

Inheritance

TypeMetadata, LayoutWrapper

Properties

ptr

Backing enum metadata pointer.

public let ptr: UnsafeRawPointer

descriptor

The enum context descriptor that describes this enum.

public var descriptor: EnumDescriptor 

trailingFlags

Flags recorded after this generic enum metadata's arguments and optional payload-size word when the compiler emitted a static specialization.

public var trailingFlags: MetadataTrailingFlags? 

isStaticallySpecializedGenericMetadata

Whether this metadata is a generic specialization created during compilation.

public var isStaticallySpecializedGenericMetadata: Bool 

isCanonicalStaticallySpecializedGenericMetadata

Whether this compiled generic specialization was made canonical by its metadata accessor.

public var isCanonicalStaticallySpecializedGenericMetadata: Bool 
Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally