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.

method libtmux-rs latest

Predicate.validate_text

Validate that this predicate is a well-formed text predicate.

Source and package
Qualified name
libtmux::query::private::Predicate::validate_text
Module
query.private
Declared in
Predicate
Package
libtmux
Source
crates/libtmux/src/query/private.rs
pub fn validate_text(&self) -> Result< (), FilterExpressionError >

Description#

Errors

Returns FilterExpressionErrorKind::UnknownOperator for another scalar family and FilterExpressionErrorKind::InvalidStructure for an invalid text value or compiled-regex shape.

The crate::query::Filterable example executes this method in a hand-written generated-code expansion.

Esc

Type to search.

Reference previewOpen reference