Filter.to_predicate/2
Prepares a local unary predicate after validating captured coverage, including empty domains.
Source and package
- Qualified name
-
LibTmux .Filter. to _predicate/2 - Module
- LibTmux
- Declared in
Filter- Package
- libtmux
- Source
- lib/libtmux/filter.ex
- to_predicate(filter, options) @spec to_predicate(t(), [ {:snapshot, Lib
Tmux ()} ]) :: (Lib.Snapshot .t Tmux () -> boolean()).Schema .observation -
Description
Relationship and count predicates require each input to equal the observation stored under its ID in
snapshot. A missing or different observation raisesLibTmux.Errorwith kind:observation_mismatch. Related values always come from the prepared snapshot; equal inputs from another capture are accepted.Scalar-only predicates read the supplied observation and may be reused across captures. Each referenced field must be loaded:
:unloadedraises:field_not_loadedand:unavailableraises:field_unavailablebefore Boolean evaluation. Known nullable values keep their comparison semantics; unreferenced fields need not be loaded. The snapshot validates coverage when preparing the predicate.See the worked example.
- Parameters
-
-
options([{:snapshot, LibTmux ()}]).Snapshot .t
Recorded calls
source callsThe Elixir reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Filter.to_predicate/2.
Guides
task materialPages that discuss to_predicate/2.