WhereClauseType
public protocol WhereClauseType : AnyWhereClause
Abstracts the Where
clause for protocol utilities. Typically used only for utility method generic constraints.
-
The
DynamicObject
type associated with the clauseDeclaration
Swift
associatedtype ObjectType : DynamicObject
-
&&(_:
Extension method_: ) Combines two
Where
predicates together usingAND
operator.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 unrelatedDynamicObject
types.Declaration
Swift
public static func && <TWhere>(left: Self, right: TWhere) -> Where<Self.ObjectType> where TWhere : WhereClauseType
-
&&(_:
Extension method_: ) Combines two
Where
predicates together usingAND
operator.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 unrelatedDynamicObject
types.Declaration
Swift
public static func && <TWhere>(left: TWhere, right: Self) -> Where<Self.ObjectType> where TWhere : WhereClauseType
-
||(_:
Extension method_: ) Combines two
Where
predicates together usingOR
operator.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 unrelatedDynamicObject
types.Declaration
Swift
public static func || <TWhere>(left: Self, right: TWhere) -> Where<Self.ObjectType> where TWhere : WhereClauseType
-
||(_:
Extension method_: ) Combines two
Where
predicates together usingOR
operator.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 unrelatedDynamicObject
types.Declaration
Swift
public static func || <TWhere>(left: TWhere, right: Self) -> Where<Self.ObjectType> where TWhere : WhereClauseType