MemberConstraint
struct MemberConstraint : Constraint, Hashable, Sendable
extension MemberConstraint: CustomStringConvertible
A constraint L.m == R specifying that L has a member of type R named m.
-
The base type of the left operand.
Declaration
Swift
private(set) var subject: AnyType { get } -
The right operand.
Declaration
Swift
private(set) var memberType: AnyType { get } -
The name of the member in
subjectthat must have typememberType.Declaration
Swift
let memberName: Name -
The purpose of
memberExpr.Declaration
Swift
let purpose: NameUse -
The site from which a constraint originates and the reason why it was formed.
Declaration
Swift
let origin: ConstraintOrigin -
Creates a constraint requiring
subjectto have a member of typememberTypeand whose name is expressed bymemberExpr.Declaration
-
Inserts the type variables that occur free in
selfintos.Declaration
Swift
func collectOpenVariables(in s: inout Set<TypeVariable>) -
-
Declaration
Swift
var description: String { get }
View on GitHub