Rule

public indirect enum Rule<Item>
extension Rule: ExpressibleByStringLiteral,
                ExpressibleByStringInterpolation,
                ExpressibleByExtendedGraphemeClusterLiteral,
                ExpressibleByUnicodeScalarLiteral where Item == String

A wrapper around some generic Item that can be composed with logical operators like AND, OR and NOT.

This can be used to create compositions of Condition objects or to define the LoadRule IDs that have to be applied, or excluded, to a specific Dispatcher or Collector.

  • Returns true if it does NOT contain any false Item.

    Declaration

    Swift

    case and([`Self`])
  • Returns true if at least one contained item is true.

    Declaration

    Swift

    case or([`Self`])
  • Negates the boolean value contained in the Item.

    Declaration

    Swift

    case not(`Self`)
  • It’s just a wrapper for the item itself.

    Declaration

    Swift

    case just(Item)

Available where Item == String