AnyExpression

struct AnyExpression
extension AnyExpression : Equatable, Expression, Sendable

Typed-erased Expression.

  • Undocumented

    Declaration

    Swift

    func cast<T>(_ type: T.Type = T.self) -> T? where T : Expression
  • Undocumented

    Declaration

    Swift

    func `is`<T>(_ type: T.Type = T.self) -> Bool where T : Expression
  • Returns true if the expressions are equal, false otherwise.

    Declaration

    Swift

    func isEqual(to other: any Expression) -> Bool
  • Returns a Boolean value indicating whether two values are equal.

    Equality is the inverse of inequality. For any values a and b, a == b implies that a != b is false.

    Declaration

    Swift

    static func == (lhs: AnyExpression, rhs: AnyExpression) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.