# FilterExpr

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/FilterExpr.swift#L162
- **Page:** https://libtmux.org/reference/swift/filterexpr/

A filter over one model, held as data.

`Sendable` and `Codable` because it is meant to outlive the call that built
it: stored in a config, sent to another process, or translated into a tmux
predicate. Closures deliberately have no place in it — they cannot be any of
those things.

## Members

- `!=(_:_:)` (function) — Returns a Boolean value indicating whether two values are not equal.
- `comparison(field:operation:)` (constant)
- `and(_:)` (constant)
- `or(_:)` (constant)
- `not(_:)` (constant)
- `where(_:_:)` (method) — Builds a comparison from a key path.
- `matches(_:)` (method) — Whether one value satisfies this filter.
- `validate()` (method) — Rejects field ids this build does not understand anywhere in the tree.
- `init(from:)` (method) — Creates a new instance by decoding from the given decoder.
