Core Library0.xAPI Reference

Choose documentation 1

latest

Current version

latest
English

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

class libtmux-raku latest

Query.Filter

A schema-validated local matcher with copied, immutable criteria and AST.

Source and package
Qualified name
LibTmux::Query::Filter
Module
LibTmux
Declared in
Query
Package
LibTmux
Source
lib/LibTmux/Query.rakumod
Anonymous class

Description#

A schema-validated local matcher with copied, immutable criteria and AST.

Members11#

  • ACCEPTS method Participate as a native matcher without changing data equality semantics.
  • ast: Node:D property Validated immutable expression tree used by matches and ACCEPTS.
  • clone method Recompile changed criteria instead of bypassing validation with Mu.clone.
  • compile method Validate the entire criterion before observing any member.
  • criteria: Map:D property Deep-copied normalized query data, independent of the caller containers.
  • entity: Str:D property Entity schema against which every field and relationship was validated.
  • from-json method Bound bytes and nesting before JSON::Fast, then validate the closed wire grammar.
  • limits: Limits:D property Immutable validation and serialization bounds used by this compiled filter.
  • matches method Evaluate locally using the fixed entity/state/value/relation view protocol.
  • new method Refuse unvalidated construction; use compile or from-json.
  • to-json method Encode the proposed wire schema; reject exact numbers that would round.
Esc

Type to search.

Reference previewOpen reference