# FilterOperation

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

How a filter compares one field.

Written as a wire value rather than a closure, so an expression can be
stored, sent, inspected, and later compiled to a tmux `-f` predicate.
A regular expression travels in compiled, bounded form.

## Members

- `!=(_:_:)` (function) — Returns a Boolean value indicating whether two values are not equal.
- `equals(_:)` (constant)
- `caseInsensitiveEquals(_:)` (constant)
- `contains(_:)` (constant)
- `caseInsensitiveContains(_:)` (constant)
- `hasPrefix(_:)` (constant)
- `hasSuffix(_:)` (constant)
- `isIn(_:)` (constant)
- `matches(pattern:)` (constant)
- `init(from:)` (method) — Creates a new instance by decoding from the given decoder.
