WhereClauseType
public protocol WhereClauseType : AnyWhereClause
Abstracts the Where clause for protocol utilities. Typically used only for utility method generic constraints.
-
The
DynamicObjecttype associated with the clauseDeclaration
Swift
associatedtype ObjectType : DynamicObject
-
&&(_:Extension method_: ) Combines two
Wherepredicates together usingANDoperator.Warning
This operator overload is a workaround for Swift generics’ inability to constrain by inheritance (https://bugs.swift.org/browse/SR-5213). In effect, this is less type-safe than other overloads because it allows AND'ing clauses of unrelatedDynamicObjecttypes.Declaration
Swift
public static func && <TWhere>(left: Self, right: TWhere) -> Where<Self.ObjectType> where TWhere : WhereClauseType -
&&(_:Extension method_: ) Combines two
Wherepredicates together usingANDoperator.Warning
This operator overload is a workaround for Swift generics’ inability to constrain by inheritance (https://bugs.swift.org/browse/SR-5213). In effect, this is less type-safe than other overloads because it allows AND'ing clauses of unrelatedDynamicObjecttypes.Declaration
Swift
public static func && <TWhere>(left: TWhere, right: Self) -> Where<Self.ObjectType> where TWhere : WhereClauseType -
||(_:Extension method_: ) Combines two
Wherepredicates together usingORoperator.Warning
This operator overload is a workaround for Swift generics’ inability to constrain by inheritance (https://bugs.swift.org/browse/SR-5213). In effect, this is less type-safe than other overloads because it allows OR'ing clauses of unrelatedDynamicObjecttypes.Declaration
Swift
public static func || <TWhere>(left: Self, right: TWhere) -> Where<Self.ObjectType> where TWhere : WhereClauseType -
||(_:Extension method_: ) Combines two
Wherepredicates together usingORoperator.Warning
This operator overload is a workaround for Swift generics’ inability to constrain by inheritance (https://bugs.swift.org/browse/SR-5213). In effect, this is less type-safe than other overloads because it allows OR'ing clauses of unrelatedDynamicObjecttypes.Declaration
Swift
public static func || <TWhere>(left: TWhere, right: Self) -> Where<Self.ObjectType> where TWhere : WhereClauseType
View on GitHub
WhereClauseType Protocol Reference