Core Library0.xAPI Reference

Choose documentation 3

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.

struct libtmux-rs latest

Predicate

One opaque predicate passed to generated candidate dispatch.

Source and package
Qualified name
libtmux::query::private::Predicate
Module
query.private
Package
libtmux
Source
crates/libtmux/src/query/private.rs
struct query.private.Predicate

Description#

Downstream code can inspect only the stable field name and call the typed matching or validation helpers.

The crate::query::Filterable example executes every scalar helper through a hand-written generated-code expansion.

Members14#

  • field method Return the stable field name used by generated dispatch.
  • matches_bool method Match a boolean candidate with this boolean predicate.
  • matches_enum method Match a custom enum candidate's stable filter string.
  • matches_many method Match this relation predicate against already-loaded related values.
  • matches_one method Match this relation predicate against one already-loaded value.
  • matches_signed method Match a signed candidate widened without loss to i128.
  • matches_text method Match a strict UTF-8 candidate with this text predicate.
  • matches_unsigned method Match an unsigned candidate widened without loss to u128.
  • validate_bool method Validate that this predicate is a well-formed boolean predicate.
  • validate_enum method Validate this predicate against a custom enum's stable variants.
  • validate_integer method Validate this predicate for one fixed-width integer kind.
  • validate_many method Validate this predicate as a to-many relation over U.
  • validate_one method Validate this predicate as a to-one relation over U.
  • validate_text method Validate that this predicate is a well-formed text predicate.
Esc

Type to search.

Reference previewOpen reference