Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

GenericRequirement_Relation

Mattt edited this page Aug 2, 2020 · 6 revisions

GenericRequirement.Relation

A relation between the two types identified in the generic requirement.

public enum Relation

For example, the declaration struct S<T:​ Equatable> has a single generic requirement that the type identified by "T" conforms to the type identified by "Equatable".

Inheritance

Codable, Hashable, String

Enumeration Cases

sameType

The type identified on the left-hand side is equivalent to the type identified on the right-hand side of the generic requirement.

case sameType

conformance

The type identified on the left-hand side conforms to the type identified on the right-hand side of the generic requirement.

case conformance
Clone this wiki locally