Skip to content

GenericRequirementKind

tevelee edited this page Jul 25, 2026 · 2 revisions

GenericRequirementKind

A discriminator to determine what kind of requirement a generic requirement is.

public enum GenericRequirementKind: UInt8 

Inheritance

UInt8

Enumeration Cases

`protocol`

case `protocol` = 0x0

sameType

case sameType = 0x1

baseClass

case baseClass = 0x2

sameConformance

case sameConformance = 0x3

sameShape

A same-shape requirement between two generic parameter packs.

case sameShape = 0x4

invertedProtocols

An inverted-protocol requirement for capabilities such as Copyable.

case invertedProtocols = 0x5

layout

case layout = 0x1F
Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally