CallConstraint
struct CallConstraint : Constraint, Hashable, Sendable
extension CallConstraint: CustomStringConvertible
A constraint F(A1, ..., An) -> R or F[A1, ..., An]: R specifying that F is the type of a
callable object that returns or projects (respectively) instances of R when called with
arguments of types A1, ..., An.
-
The label, type, and site of an argument passed to a callable object.
See moreDeclaration
Swift
struct Argument : Hashable, Sendableextension CallConstraint.Argument: CustomStringConvertible -
A type assumed to be callable.
Declaration
Swift
private(set) var callee: AnyType { get } -
The call associated with this constraint.
Declaration
Swift
let call: CallID -
trueifcalleeis expected to be an arrow;falseif it’s expected to be a subscript.Declaration
Swift
let isArrow: Bool -
trueifcalleeis marked for mutation.Declaration
Swift
let isMutating: Bool -
Declaration
Swift
let origin: ConstraintOrigin -
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