Enumeration
PredicateExpressions
iOS 17.0+
iPadOS 17.0+
Mac Catalyst 17.0+
macOS 14.0+
tvOS 17.0+
watchOS 10.0+
The expressions that make up a predicate.
@frozen enum PredicateExpressions
Overview
Don’t use this type directly. When you call the Predicate(_:) macro in your code, the expansion of that macro produces these values.
Topics
Structures
struct Arithmeticstruct ClosedRangestruct CollectionContainsCollectionstruct CollectionIndexSubscriptstruct CollectionRangeSubscriptstruct Comparisonstruct Conditionalstruct ConditionalCaststruct Conjunctionstruct DictionaryKeyDefaultValueSubscriptstruct DictionaryKeySubscriptstruct Disjunctionstruct Equalstruct ExpressionEvaluatestruct Filterstruct FloatDivisionstruct ForceCaststruct ForcedUnwrapstruct IntDivisionstruct IntRemainderstruct KeyPathstruct Negationstruct NilCoalescestruct NilLiteralstruct NotEqualstruct OptionalFlatMapstruct PredicateRegexstruct Rangestruct RangeExpressionContainsstruct SequenceAllSatisfystruct SequenceContainsstruct SequenceContainsWherestruct SequenceMaximumstruct SequenceMinimumstruct SequenceStartsWithstruct StringContainsRegexstruct TypeCheckstruct UnaryMinusstruct Valuestruct Variablestruct VariableID
Type Methods
static build_Arg(_:)static func build_Arithmetic<LHS, RHS>(lhs: LHS, rhs: RHS, op: PredicateExpressions.ArithmeticOperator) -> PredicateExpressions.Arithmetic<LHS, RHS>static func build_ClosedRange<LHS, RHS>(lower: LHS, upper: RHS) -> PredicateExpressions.ClosedRange<LHS, RHS>static func build_Comparison<LHS, RHS>(lhs: LHS, rhs: RHS, op: PredicateExpressions.ComparisonOperator) -> PredicateExpressions.Comparison<LHS, RHS>static func build_Conditional<Test, If, Else>(Test, If, Else) -> PredicateExpressions.Conditional<Test, If, Else>static func build_Conjunction<LHS, RHS>(lhs: LHS, rhs: RHS) -> PredicateExpressions.Conjunction<LHS, RHS>static func build_Disjunction<LHS, RHS>(lhs: LHS, rhs: RHS) -> PredicateExpressions.Disjunction<LHS, RHS>static build_Division(lhs:rhs:)static func build_Equal<LHS, RHS>(lhs: LHS, rhs: RHS) -> PredicateExpressions.Equal<LHS, RHS>static func build_ForcedUnwrap<Inner, Wrapped>(Inner) -> PredicateExpressions.ForcedUnwrap<Inner, Wrapped>static func build_KeyPath<Root, Value>(root: Root, keyPath: any KeyPath<Root.Output, Value> & Sendable) -> PredicateExpressions.KeyPath<Root, Value>static func build_Negation<T>(T) -> PredicateExpressions.Negation<T>static func build_NilCoalesce<LHS, RHS>(lhs: LHS, rhs: RHS) -> PredicateExpressions.NilCoalesce<LHS, RHS>static func build_NilLiteral<Wrapped>() -> PredicateExpressions.NilLiteral<Wrapped>static func build_NotEqual<LHS, RHS>(lhs: LHS, rhs: RHS) -> PredicateExpressions.NotEqual<LHS, RHS>static func build_Range<LHS, RHS>(lower: LHS, upper: RHS) -> PredicateExpressions.Range<LHS, RHS>static func build_Remainder<LHS, RHS>(lhs: LHS, rhs: RHS) -> PredicateExpressions.IntRemainder<LHS, RHS>static func build_UnaryMinus<T>(T) -> PredicateExpressions.UnaryMinus<T>static func build_allSatisfy<LHS, RHS>(LHS, (PredicateExpressions.Variable<LHS.Output.Element>) -> RHS) -> PredicateExpressions.SequenceAllSatisfy<LHS, RHS>static build_contains(_:_:)static func build_contains<LHS, RHS>(LHS, where: (PredicateExpressions.Variable<LHS.Output.Element>) -> RHS) -> PredicateExpressions.SequenceContainsWhere<LHS, RHS>static func build_evaluate<Transformation, each Input, Output>(Transformation, repeat each Input) -> PredicateExpressions.ExpressionEvaluate<Transformation, repeat each Input, Output>static func build_filter<LHS, RHS>(LHS, (PredicateExpressions.Variable<LHS.Output.Element>) -> RHS) -> PredicateExpressions.Filter<LHS, RHS>static build_flatMap(_:_:)static func build_max<Elements>(Elements) -> PredicateExpressions.SequenceMaximum<Elements>static func build_min<Elements>(Elements) -> PredicateExpressions.SequenceMinimum<Elements>static func build_starts<Base, Prefix>(Base, with: Prefix) -> PredicateExpressions.SequenceStartsWith<Base, Prefix>static build_subscript(_:_:)static func build_subscript<Wrapped, Key, Default>(Wrapped, Key, default: Default) -> PredicateExpressions.DictionaryKeyDefaultValueSubscript<Wrapped, Key, Default>
Enumerations
Relationships
Conforms To
Swift.BitwiseCopyable