Skip to content

ContextDescriptorFlags

tevelee edited this page Jul 25, 2026 · 3 revisions

ContextDescriptorFlags

The flags which describe a context descriptor.

public struct ContextDescriptorFlags 

Properties

bits

Flags as represented in bits.

public let bits: UInt32

kind

The kind of context this descriptor is.

public var kind: ContextDescriptorKind 

isUnique

Whether this context is "unique".

public var isUnique: Bool 

hasInvertibleProtocols

Whether this descriptor has a trailing InvertibleProtocolSet for capabilities such as Copyable and Escapable.

public var hasInvertibleProtocols: Bool 

isGeneric

Whether or not this context is generic and has a generic context.

public var isGeneric: Bool 

reservedBits

Reserved bits in the context-descriptor ABI.

public var reservedBits: UInt8 

These bits were formerly interpreted as a descriptor version. Modern Swift leaves them reserved, so their value must not drive compatibility decisions.

version

The former version field for this context descriptor.

@available(*, deprecated, message: "Context descriptors no longer have a version field; use reservedBits only for raw ABI inspection.")
  public var version: UInt8 

Modern Swift reserves these bits. Use reservedBits only for raw ABI inspection, never for a compatibility decision.

Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally