Skip to content

ExistentialMetadata

Azoy edited this page May 6, 2021 · 2 revisions

ExistentialMetadata

The metadata structure that represents some existential type, mainly protocols, in Swift.

public struct ExistentialMetadata: 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 existential metadata pointer.

public let ptr: UnsafeRawPointer

flags

The flags specific to existential metadata.

public var flags: Flags 

numProtocols

The number of protocols that compose this existential type.

public var numProtocols: Int 

superclass

The superclass type that this existential is constrained to, if any.

public var superclass: Any.Type? 

superclassMetadata

The superclass metadata that this existential is constrained to, if any.

public var superclassMetadata: Metadata? 

protocols

An array of protocols that make up this existential.

public var protocols: [ProtocolDescriptor] 
Types
Protocols
Global Variables
Global Functions
Clone this wiki locally