# FilterOperation

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/FilterExpr.swift#L70
- **Page:** https://libtmux.org/en/swift/latest/reference/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.
