Skip to content

InvertibleProtocolSet

tevelee edited this page Jul 25, 2026 · 2 revisions

InvertibleProtocolSet

A set of invertible protocol requirements carried by a function type.

public struct InvertibleProtocolSet 

Properties

bits

Flags as represented in bits.

public let bits: UInt16

invertsCopyable

Whether Copyable is inverted, permitting ~Copyable values.

public var invertsCopyable: Bool 

invertsEscapable

Whether Escapable is inverted, permitting ~Escapable values.

public var invertsEscapable: Bool 

isEmpty

Whether no invertible protocol requirement is inverted.

public var isEmpty: Bool 

knownProtocols

The capability protocols currently known to the Swift ABI.

public var knownProtocols: [InvertibleProtocolKind] 

unknownBits

Bits reserved for capability protocols introduced by newer Swift runtimes.

public var unknownBits: UInt16 

hasUnknownProtocols

Whether this set contains an invertible protocol Echo does not know.

public var hasUnknownProtocols: Bool 

Callers that need to make a semantic decision should treat this as a fail-closed condition rather than assuming the known protocols are the complete set.

Methods

contains(_:)

Whether this set contains a particular capability protocol.

public func contains(_ protocol: InvertibleProtocolKind) -> Bool 
Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally