Skip to content

DualExistentialContainer

Azoy edited this page Mar 17, 2021 · 2 revisions

DualExistentialContainer

An existential container is a type in Swift that contains some struct or class with information of what the type it's containing is, and the witness tables needed that the existential (protocol) is. Dual supports an existential that is composed of two protocols. E.g. X & Y

public struct DualExistentialContainer

ABI Stability: Stable since the following

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

Properties

base

The base any existential, also known as Any.

var base: AnyExistentialContainer

witnessTables

A pointer to witness tables.

var witnessTables: (WitnessTable, WitnessTable)
Types
Protocols
Global Variables
Global Functions
Clone this wiki locally