Skip to content
tevelee edited this page Jul 27, 2026 · 27 revisions

Types

Protocols

  • ContextDescriptor: A context descriptor describes any entity in Swift that contains other types or contexts.
  • TypeContextDescriptor: A type context descriptor is a context descriptor who defines some new type. This includes structs, classes, and enums. Protocols also define a new type, but aren't considered type context descriptors.
  • ExistentialTypeMetadata: Common metadata surface for legacy and constrained existential types.
  • Metadata: Metadata refers to the Swift metadata records in a given binary. All metadata records include a value witness table, which describe how to properly copy, destroy, etc. the memory of a type, along with a given "kind".
  • TypeMetadata: Type metadata refers to those metadata records who declare a new type in Swift. Said metadata records only refer to structs, classes, and enums.

Global Typealiases

Global Functions

Global Variables

  • ptr: Backing existential metatype metadata pointer.
  • instanceType: The existential instance type that this metatype wraps.
  • instanceMetadata: The metadata for the existential instance type that this metatype wraps.
  • flags: The flags specific to existential metadata.
  • protocols: The list of all protocols this program has loaded.
  • types: The list of all protocols this program has loaded.
  • dynamicReplacementScopes: Dynamic-replacement scopes registered by the images currently loaded into this process. The scopes are read-only views; replacement activation remains the Swift runtime's responsibility.
  • opaqueTypeReplacements: Opaque-type (some) descriptor replacements registered by loaded images.
  • accessibleFunctions: Functions that Swift has made available for runtime lookup by mangled name.
Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally