ConstraintOrigin
struct ConstraintOrigin : Hashable, Sendable
extension ConstraintOrigin: CustomStringConvertible
The site from which a constraint originates and the reason why it was formed.
-
The reason why a constraint was formed.
See moreDeclaration
Swift
enum Kind : Hashable -
The reason of the constraint.
Declaration
Swift
let kind: Kind -
The site from which the constraint originates.
Declaration
Swift
let site: SourceRange -
Creates a new instance with the given properties.
Declaration
Swift
init(_ kind: Kind, at site: SourceRange) -
Returns the parent of this instance if it has kind
.subordinate.Declaration
Swift
var parent: ConstraintOrigin? { get } -
Returns a subordinate of this instance with given
id.Declaration
Swift
func subordinate() -> ConstraintOrigin -
Declaration
Swift
var description: String { get }
View on GitHub