Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

struct libtmux-elixir

Filter

A validated portable predicate over one observed entity type.

Source and package
Qualified name
LibTmux.Filter
Module
LibTmux
Package
libtmux
Source
lib/libtmux/filter.ex
struct LibTmux.Filter

Description

Keywords are trusted shorthand for maps. Fields in one object conjoin; duplicate keyword keys are rejected recursively. not at a field negates equality, while Boolean not takes one criteria object. Lists require an explicit operator. Native callbacks belong to LibTmux.Selection.filter/2. This value contains data; executable preparation remains separate.

Members11 members

Common operations4

  • from_json/3 function Decodes bounded JSON, rejecting duplicate object keys and trailing data.
  • new/3 function Normalizes criteria and validates field/operator/value domains before evaluation.
  • to_predicate/2 function Prepares a local unary predicate after validating captured coverage, including empty domains.
  • to_wire/1 function Returns the explicit versioned string-keyed wire representation.

Other members7

Esc
Search in

Type to search.

Reference previewOpen reference