SwiftstructFoundation

struct Foundation.Predicate

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 14

  1. varstatic var false: Foundation.Predicate<Pack{repeat A}> { get }
  2. varstatic var true: Foundation.Predicate<Pack{repeat A}> { get }
  3. fieldlet expression: any Foundation.StandardPredicateExpression<Self.PredicateExpression.Output == Bool>+0x0
  4. fieldlet variable: (repeat Foundation.PredicateExpressions.Variable<A>)
  5. funcencode(to: Encoder, configuration: Foundation.PredicateCodableConfiguration) throws -> ()
  6. funcevaluate(repeat A) throws -> Bool
  7. initinit<A where A1: BidirectionalCollection, A1.Element == Foundation.Predicate<Pack{repeat A}>>(all: A1) -> Foundation.Predicate<Pack{repeat A}>
  8. initinit<A where A1: BidirectionalCollection, A1.Element == Foundation.Predicate<Pack{repeat A}>>(any: A1) -> Foundation.Predicate<Pack{repeat A}>
  9. initinit(from: Decoder, configuration: Foundation.PredicateCodableConfiguration) throws -> Foundation.Predicate<Pack{repeat A}>
  10. initinit((repeat Foundation.PredicateExpressions.Variable<A>) -> any Foundation.StandardPredicateExpression<Self.PredicateExpression.Output == Bool>) -> Foundation.Predicate<Pack{repeat A}>
  11. typealiastypealias DecodingConfiguration = Foundation.PredicateCodableConfiguration
  12. typealiastypealias EncodingConfiguration = Foundation.PredicateCodableConfiguration
  13. varvar debugDescription: String { get }
  14. varvar description: String { get }
struct Predicate<each A> {
    let expression: any Foundation.StandardPredicateExpression<Swift.Bool>
    let variable: (repeat Foundation.PredicateExpressions.Variable<(each A)>)

    init<A1>(all: A1) where A1: Swift.BidirectionalCollection, A1.Element == Foundation.Predicate<repeat (each A)>
    init<A1>(any: A1) where A1: Swift.BidirectionalCollection, A1.Element == Foundation.Predicate<repeat (each A)>
    init(from: any Swift.Decoder, configuration: Foundation.PredicateCodableConfiguration) throws
    init(_: (_: repeat Foundation.PredicateExpressions.Variable<(each A)>) -> any Foundation.StandardPredicateExpression<Swift.Bool>)

    var debugDescription: Swift.String {
        get
    }
    var description: Swift.String {
        get
    }

    func encode(to: any Swift.Encoder, configuration: Foundation.PredicateCodableConfiguration) throws
    func evaluate(_: repeat (each A)) throws -> Swift.Bool

    static var false: Foundation.Predicate<repeat (each A)> {
        get
    }
    static var true: Foundation.Predicate<repeat (each A)> {
        get
    }
}